i got this code:
RewriteEngine On
RewriteRule ^!(.+)$ user.php?user=$1 [L]
that works fine when i enter
'www.example.com/![username]'
but when i enter
'www.exaple.com/![username]/'
than my webpage wants to load al data,imagges,css files,javascript’s from the directory:
'/![username]/'
directory how can i ignore the last slach in my htaccess?
should do it for you. The Slash at end of the URL is optional with
[/]?.EDIT:
I see what you need. Your Site is loading the CSS, JS, images, etc. from a relative location; so if you are using a rewriterule which simulates a folder in the URL, your ressources aren’t proberly loaded.
In this case you need to redirect the wrong URLs (with trailing slash) to the correct URL without trailing slash like this:
… untested.