![]() |
htaccess not working properly
I did post on wht but no one replied.
I have one htaccess on the public_html directory and i have this anti hotlinking code. But for some reason this doesnt work while it works on other servers. I have reinstalled mod_rewrite but still the same issue. Please help #RewriteEngine on #RewriteCond %{HTTP_REFERER} !^$ #RewriteCond %{HTTP_REFERER} !^http://(www\.)?site\.net/ [NC] #RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://site.net/no_hotlinking.gif [NC] |
Did you restart/reload apache after you added the htaccess file (sometimes you need to do that).
|
Yes, I did restart but still the same
--------------- Added [DATE]1217268947[/DATE] at [TIME]1217268947[/TIME] --------------- Also checked AllowOverride which is set to All in the apache conf. |
Please post your whole .htaccess file.
|
Also are there any .htacces files in a sub-directory?
|
No, there are no other htaccess files. Onlyhave one.
Also made sure that my server dont have phpsuexec installed and apache can read files Code:
RewriteEngine On |
You can start by removing the last two
RewriteEngine on You only need it once at the start of the file |
Well it works now however the sysadmin who did this wrote this
Quote:
|
All times are GMT. The time now is 09:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|