Basics of .htaccess

Associate
Joined
4 Mar 2007
Posts
315
Location
United Kingdom
So. I've set up an htaccess script but a few things i'm uncertain of.

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/$ index.php?url=$1

That's fine as I can do.

www.site.com/whatever

and that's the same as

www.site.com/index.php?url=whatever

But there doesn't seem to be a way to do it without and with trailing slashes or am I wrong?
 
Back
Top Bottom