Hello, i am having a bit of trouble with .htaccess rewrites - i was just wondering if anyone can shed some light on it… currently i have:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?profile=$1
So it checks if its a file or directory … then it rewrites the url get variable with the name added.
What im wanting to do is just dothings like…
if i put “website.com/profilename” it would take me to the profile (index.php?profile=profilename)
(that part works already) although if i put
“website.com/profilename/pagename” it would take me to (index.php?profile=profilename&page=pagename)
How would you recommend me doing this… building up seperate directories??
Thanks
Lewis