Jump to content


Photo

htaccess help


  • Please log in to reply
2 replies to this topic

#1 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 27 July 2006 - 03:27 AM

hey! you guys have helped me alot and i hope you can help me with this next question i have... i am building a cms and i dont want those gay dynamic urls and i followed some tutorial and this is what i got:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/]*)/$ /index.php?q=$1 [L]
and it works when i type the url like this: http://somedomain.com/home/ but not like this: http://somedomain.com/home

basically it does not work if i dont put the trailing slash in it... does anyone know how to make it work without the ending slash?

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 27 July 2006 - 09:29 AM

its becuase you have a trailing slash within your rewrite rule:
RewriteRule ^([^/]*)/$ /index.php?q=$1 [L]
Remove the slash before the $ sign, That should sort it.

#3 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 28 July 2006 - 06:49 AM

thanks... i should have seen that... :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users