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

Please see where $_SESSION[$data] is set. If it is set correctly.
And instead of $_SESSION, "int"
you may write and $_SESSION[$data], "int" and see.

Please see where $_SESSION[$data] is set. If it is set correctly.
And instead of $_SESSION, "int"
you may write and $_SESSION[$data], "int" and see.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.