Forum Moderators: phranque
i have this problem:
like most people, i want to get my server so that
[domain.com...]
Goes to [domain.com...]
I tried this:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
RewriteRule ^([^/]+)/$ index.php?menu=$1 [L]
This only works fine when I add a / behind item:
[domain.com...] works,
but I want [domain.com...] to work too.
How can I do this?
Welcome to WebmasterWorld [webmasterworld.com]!
You can make the trailing slash optional by following it with "?"
RewriteRule ^([^/]+)/?$ index.php?menu=$1 [L]
Jim