Jamesking56 Posted October 27, 2009 Share Posted October 27, 2009 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 More sharing options...
chibineku Posted October 27, 2009 Share Posted October 27, 2009 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 More sharing options...
ProblemHelpPlease Posted October 27, 2009 Share Posted October 27, 2009 Depending on what you require the htacces to do you could try removing the 2nd 3rd an4th lines. Also make sure that any links in the user_group.php are using full http addresses. Link to comment Share on other sites More sharing options...
Jamesking56 Posted October 28, 2009 Author Share Posted October 28, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.