Portal Home > Knowledgebase > Articles Database > htaccess problem
htaccess problem
Posted by -Edward-, 09-28-2007, 06:54 AM |
I'm have a bit of a mare getting some htaccess to work.
Here's my code:
The above works on a CPanel server but i've just moved the site to a fedora core 6, with standard httpd no control panel.
This is an entry from my log files:
For some reason it appends the my_profile.php to the end of the url, and it does it to any file in the same directory and just keeps going around in a loop, why would it do this?
|
Posted by foobic, 09-28-2007, 07:09 AM |
Try RewriteCond %{REQUEST_FILENAME} !-f
Edit: and make sure the my_profile.php file exists and has the right permissions
|
Posted by -Edward-, 09-28-2007, 07:25 AM |
Thanks, changing to a lower case f worked.
Out of intrest, why would F work on one but not the other server?
|
Posted by foobic, 09-28-2007, 07:42 AM |
Pass. I've never used F - it checks for file existence using a subquery, which seems like a bad idea for normal use.
|
Add to Favourites Print this Article
Also Read