Rewrite rules not working on localhost

Hello Friends

I am badly stuck with following Problem

I have a Project set up on my localhost in following hierarchy

www/htdocs/abl

Now the Problem is I want to rewrite following url :

#-Link-Snipped-#

to

#-Link-Snipped-#

For this I have written a .htaccess file with following code

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^([^/]+)/category/([^/]+).html /index.php?file=$1&sub1=category [NC]
But it is not working, what I am doing wrong here?

Thanks in advance

Replies

  • KenJackson
    KenJackson
    The order of the URLs on the RewriteRule line is backwards. It should be old then new.

    Also, the abl directory is missing from both.
  • Manish Goyal
    Manish Goyal
    thank you ken for reply

    I had managed to make it work

    There was no need to define directory , if you are working on same directory in which files resides

You are reading an archived discussion.

Related Posts

Chinese researchers have finally made a breakthrough in the wireless internet segment with Li-Fi technology, where wireless signals get transmitted via lightbulbs. These brilliantly awesome Chinese folks proposed that four...
Tapping into the smartphone and tablet market, Microsoft has today released a Remote Desktop App for Android, iOS (iPad and iPhone) and Mac which allows users to remotely access their...
Facebook iOS app update is here. With the update version 6.6, Facebook has taken a step closer to bringing all the functionality that the Facebook desktop mode offers. The latest...
Can any one tell what are algorithms?
Simmtronics Semiconductor Ltd., an Indian multinational computer technology company that is known best for manufacturing economical 3G Tablets with calling function and G-Sensor as well as for bringing India's First...