Jump to content


mod_rewrite help


1 reply to this topic

#1 Matt L

    Young Padawan

  • Members
  • Pip
  • 272 posts
  • Gender:Male
  • Location:Newcastle

Posted 16 August 2006 - 12:46 PM

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^/(.*)/ /index.php?id=$1

I get a 404 error. I don't know what's wrong with it.

#2 Matthew.

    Official Spammer .Matt

  • Members
  • PipPipPipPip
  • 2,749 posts
  • Gender:Male
  • Location:England

Posted 16 August 2006 - 12:59 PM

Are you sure you should be including the / before index.php? :D

Also you could try:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)/ /index.php?id=$1

Without or without the aforementioned slash of course. :)

Im not expert on mod_rewrite but with that first / the url would have to be //foo/ not /foo/.

ps. this should be in coding help ^_^





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users