Rewriting URLs with mod_rewrite
- by Webby
Hey guys,
I'm currently rewriting urls from
http://domain.com/profile/?u=10000017564881
this to this
http://domain.com/profile/10000017564881
with the following rewrite
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)\/?$ index.php?u=$1 [L]
However I'd like to optimize for seo a litte and go with :
http://domain.com/profile/10000017564881/Anything-I-want-here
Obviously the /Anything-I-want-here is just null ignored ...
Any idea's guys?
much appreciated