• Manish


    MemberOct 17, 2013

    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


    Now the Problem is I want to rewrite following url :




    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
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
  • KenJackson

    MemberOct 20, 2013

    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.
    Are you sure? This action cannot be undone.
  • Manish Goyal

    MemberOct 25, 2013

    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
    Are you sure? This action cannot be undone.
Home Channels Search Login Register