FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


.htacess Problem





rtm516
In my .htaccess file i have this
Code:
Options +FollowSymLinks
RewriteEngine On
 
RewriteCond %{SCRIPT_FILENAME}.php -f
RewriteRule ^(\w+)$ $1.php [L,NC]

RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f

RewriteRule ^user/([a-zA-Z0-9_.-]+)/.*$ profile.php?username=$1 [L,NC,QSA]

what i want it to do is when i got to www.mydomain.com/home it displays me to www.mydomain.com/home.php
BTW: that part works

But this line doesn't work
Code:
RewriteRule ^user/([a-zA-Z0-9_.-]+)/.*$ profile.php?username=$1 [L,NC,QSA]

what i want it to do is when i go to www.mydomain.com/users/rtm516 i want it to display www.mydomain.com/profile.php?username=rtm516 but all i get is error 404 file not found
Peterssidan
In the RewriteRule you have user in singular but in the URL you have it in plural. It need to be consistent.
Related topics
Problem with Subdomains
Strange Fire fox problem
Logout problem (Cookie?)
How to solve this problem? Thanks
I have a problem....Mozilla Firefox
post nuke problem
anyone had this phpBB problem?
phpbb problem....
Transport yourself over the Net
Problem with my password
Pictures problem...
database problem
same problem over here...
Header("Location: PROBLEM");
Menu problem
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.