cannot rewrite url

Discussion in 'Apache' started by learnerabn, Feb 12, 2010.

  1. #1
    i am new to mod_rewrite.
    i loaded mod_rewrite module in my apche config file
    but rewrite rules in .htaccess file is not working with my url.
    i am testing it in my localhost.
    will it work with my localhost?
    plz any one help me
     
    learnerabn, Feb 12, 2010 IP
  2. fourdesign

    fourdesign Member

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    38
    #2
    I'm not sure if it will work on localhost but you can always try it on a single page on your server
     
    fourdesign, Feb 13, 2010 IP
  3. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Are the rewrite rules for localhost or the actual URL? You'd have to test the page using the actual URL, or write the rules for localhost (if you can even do that? not sure). Basically the browser would need to request the same "URL" that you would have in the rewrite rules.
     
    fierceservers, Feb 13, 2010 IP
  4. learnerabn

    learnerabn Peon

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes in the pattern field of the rewrite rule i gave the url of the local host
     
    learnerabn, Feb 15, 2010 IP