Forum Moderators: phranque
[somesite.com...]
Using mod_rewrite, I manage to rewrite the URL above into:
[somesite.com...]
The mod_rewrite rule is as follows:
RewriteRule ^([^/\.]+)/?$ index.php?page=$1 [L]
It works fine when there is no forward slash at the back of the URL. But when I place a forward slash at the end like this:
[somesite.com...]
The page loads, but without stylesheet (CSS) applied to it. I checked the page source of both of them and they are the same.
You do not need to escape the "." within a grouped alternate set - "[^/.]" should work fine.
Jim
Jim