URL Rewriting - not working

Discussion in 'PHP' started by tarun1979, May 18, 2007.

  1. #1
    tarun1979, May 18, 2007 IP
  2. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you enabled mod_rewrite?
     
    tamilsoft, May 18, 2007 IP
  3. tarun1979

    tarun1979 Peon

    Messages:
    198
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    .htacess file

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule process-id-(.*)\.htm$ process.php?id=$1
     
    tarun1979, May 18, 2007 IP
  4. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #4
    search ur httpd.conf file (usually /etc/http/conf/httpd.conf) for the mod_rewrite module, it should be uncommented.
    if not, uncoment save ans restart httpd.
     
    legend2, May 18, 2007 IP
  5. coderbari

    coderbari Well-Known Member

    Messages:
    3,168
    Likes Received:
    193
    Best Answers:
    0
    Trophy Points:
    135
    #5
    you should check from phpinfo();
    just write a script in a text file <?php phpinfo(); ?> and save it as a php file and run it.
    it will show the enabled modules in apache section.from there you can see if mod_rewrite is enabled or not.i think your mod_rewrite is not enabled.you should follow legend2's suggestion.
     
    coderbari, May 19, 2007 IP
  6. gibex

    gibex Active Member

    Messages:
    1,060
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    95
    #6
    enable mod_rewrite in httpd.conf
     
    gibex, May 19, 2007 IP