Jump to content

.htaccess Trouble!


Jamesking56

Recommended Posts

Hi Guys,I have a site that uses a .htaccess file not made by me.It basically makes:http://bubblechat.uk.to/profile.php?=USERtohttp://bubblechat.uk.to/USERHow do I make it exclude my file user_group.php? it seems to be messing it up... I think...Here is my htaccess file:

RewriteEngine OnRewriteCond %{HTTP_HOST} ^www\.bubblechat\.uk.to$ [NC]RewriteRule ^.*$ http://bubblechat.uk.to%{REQUEST_URI} [R=301,L]RewriteBase /RewriteCond %{REQUEST_FILENAME} -dRewriteRule ^.* - [L,QSA]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^.*/images/(.*)$ /images/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^.*/uploads_user/(.*)$ /uploads_user/$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/?$ /profile.php?user=$1 [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^([^/]+)/([^/]+)?$ /profile.php?user=$1$2 [L]

Link to comment
Share on other sites

I've had difficulty with something similar before, where I had a page called products.php5 but I wanted to rewrite products/psoriasis to something else. The browser tries to resolve what it sees as a spelling/syntax error to the real file products.php5. I didn't fix it, I just renamed my products.php5 page, lol. I'm not suggesting that, just letting you know that it happened to me too.

Link to comment
Share on other sites

Thanks for you help but I have tried what you said and STILL it doesn't work!For some reason it tries to see if profile "user_group.php" exists so it shows a profile doesn't exist error.My PHP file is there!For some reason, it seems to work on my XAMPP Server but not on a web-host.... Do you think its becuase of Safe Mode or a PHP.ini setting?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...