This works perfect as long as I include a trailing slash like mysite.com/profile/username/
Code: Select all
RewriteRule ^profile/(.*)/$ /profile/index.php?username=$1 [NC,L]I would like to just 301 redirect anyone who forgets the slash to the url containing the slash.
Code: Select all
RewriteRule ^profile/(.*)$ /profile/$1/ [R=301,L]Any other ideas?