Vote count:
0
So I'm trying to make my URLs look pretty. Like Twitters. So here's where the profile is located.
http://localhost/profile.php?username=alex
When I use
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?username=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ profile.php?username=$1
And then go to
http://localhost/alex
I end up getting this
Not Found
The requested URL /alex was not found on this server.
So my question is, what am I doing wrong? Can I enable error reporting on .htaccess? Sorry if this is really basic, but I'm, really new.
asked 28 secs ago
Aucun commentaire:
Enregistrer un commentaire