htaccess question [simple, urgent]

Discussion in 'Programming' started by tolgafiratoglu, Jun 1, 2008.

  1. #1
    tolgafiratoglu, Jun 1, 2008 IP
  2. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    this should work

    
    Options +FollowSymLinks
    RewriteEngine On
    
    RewriteRule ^(.*)/?$ writeup.php?title=$1 
    
    Code (markup):
     
    mehmetm, Jun 1, 2008 IP
  3. Freud2002

    Freud2002 Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why would you put a trailing slash at your rewrite rule ?
    I guess this would work :

    RewriteRule ^(.*)$ writeup.php?title=$1
     
    Freud2002, Jun 2, 2008 IP
  4. tolgafiratoglu

    tolgafiratoglu Well-Known Member

    Messages:
    249
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #4
    None worked.
     
    tolgafiratoglu, Jun 2, 2008 IP
  5. mehmetm

    mehmetm Well-Known Member

    Messages:
    134
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #5
    are u sure the script is coded properly?
     
    mehmetm, Jun 2, 2008 IP
  6. tolgafiratoglu

    tolgafiratoglu Well-Known Member

    Messages:
    249
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #6
    Tracing back from apache logs, I found out that httpd.conf doesn't support ReWriteModule, so I fixed it and worked properly. For the ones who may live the same problem in the future, I write this here.

    Thanks both of you.
     
    tolgafiratoglu, Jun 2, 2008 IP