I have a domain, example.com.
Here is my apache2 ReWrite rule:
RewriteEngine on
RewriteRule ^([^/.]+)/?$ index.php?uname=$1 [L]
When I go to http://example.com/Eamorr, http://example.com/Eamorr appears in the address bar of my browser.
I want http://www.example.com/index.php?uname=Eamorr to appear in the address bar! (my javascript needs to parse the GET arguments)
Is this possible?
Many thanks in advance,
Add a redirect to that
RewriteRule
. Change[L]
to[R,L]
.That'll start a redirect loop, though. You'll likely want to change it to not match
index.php
.