![]() |
htaccess problem.....
I tried using this simple htaccess file in a directory I want protected...:
RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^www.xyz.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^xyz.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^www.xyz.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^xyz.com:80/.*$ [NC] RewriteRule .*\.jpg$ http://www.go here if not xyz.com[R,L] I'm getting the red x even when coming from xyz.com... hep me hep me!! |
Try the full URL with http://
RewriteEngine On RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://www.xyz.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://xyz.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.xyz.com:80/.*$ [NC] RewriteCond %{HTTP_REFERER} !^xyz.com:80/.*$ [NC] RewriteRule .*\.jpg$ http://www.go here if not xyz.com[R,L] you might want to try to set this into the conf statement sometimes .htaccess behaves weird. Also allow overide all should be inside the conf file. |
"Simple .htaccess..."?!
Mine has 2 lines and they don't look anything like that! |
How would I go about directing people based on their username?
Lets say.... Paul ...... index.html Jim ...... yahoo.com any simple solutions with .htaccess? |
Quote:
Thanks.. |
Validus, yes there is a simple way to do that :-)
RewriteEngine on RewriteCond %{REMOTE_USER} ^Paul$ RewriteRule .* /path/to/index.html RewriteCond %{REMOTE_USER} ^Jim$ RewriteRule .* http://www.yahoo.com You can also use the user in the path to redirect to, for eg if you wanted to send Paul to: site.com/members/Paul/ RewriteCond %{REMOTE_USER} ^Paul$ RewriteRule .* /path/to/members/%{REMOTE_USER}/ hope that helps! Richard. |
All times are GMT -7. The time now is 06:00 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123