Girasquid
03-14-2007, 10:56 AM
Hello, all.
I am working on something that requires we create 'clean' URL's for users to view their profiles. We want to modify our .htaccess so that a user can type in website.com/profile/username instead of website.com/profile.cgi?username=username. This is what I have:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^profile/(.+)$ profile.cgi?username=$1
But for some reason, the value $1 is not being passed to profile.cgi(we are seeing the page that is displayed when no username is passed to it). Does anyone know what is going wrong?
Thanks,
Girasquid
I am working on something that requires we create 'clean' URL's for users to view their profiles. We want to modify our .htaccess so that a user can type in website.com/profile/username instead of website.com/profile.cgi?username=username. This is what I have:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^profile/(.+)$ profile.cgi?username=$1
But for some reason, the value $1 is not being passed to profile.cgi(we are seeing the page that is displayed when no username is passed to it). Does anyone know what is going wrong?
Thanks,
Girasquid