mod_rewrite not working in local system.

Discussion in 'Apache' started by senthil_sivanath, Jan 13, 2009.

  1. #1
    I have copied the .htaccess file of my site to my local host. The things which worked with the host is not working in local server. can you tell me what is the problem. My apache is enabled with mod_rewrite, i have checked that with php.info() please help me to solve this.:p
     
    senthil_sivanath, Jan 13, 2009 IP
  2. prasunsen

    prasunsen Peon

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What OS are you using? If you are on Windows, there are some specifics (I can't post URLs yet but you can search G)
     
    prasunsen, Jan 14, 2009 IP
  3. senthil_sivanath

    senthil_sivanath Member

    Messages:
    360
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #3
    Yes i am using windows.After some googling i found the correct code. It rewrites every .php into .html.

    That fails if add a query string.

    i have : http://localhost/article.php?id=title

    i need : http://localhost/article-title.html


    I tried lot of quotes none of them worked. So i need the correct code.:confused:
     
    senthil_sivanath, Jan 14, 2009 IP
  4. ConquestYoutube

    ConquestYoutube Peon

    Messages:
    138
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Is RewriteEngine On directive in there?
     
    ConquestYoutube, Jan 14, 2009 IP