Hi everyone,
So i have the following code which is used so i don't have to have .php at the end of my files and also more importantly to view members profiles by having there username after my domain. Unfortunately if the user has a space in their name you get a 404.
Here's the code from .htaccess:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^([a-zA-Z0-9_-]+)$ viewuser.php?user=$1
Basically, i'm just wondering if anyone knows if there is a way around it without taking the space away from everyones' username.
Thanks in Advance!,
Daniel