![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Dec 2001
Posts: 4,513
|
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!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Oct 2002
Location: Germany
Posts: 768
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Join Date: Oct 2002
Location: Ohio
Posts: 22
|
"Simple .htaccess..."?!
Mine has 2 lines and they don't look anything like that! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: Calgary, Canada
Posts: 4,012
|
How would I go about directing people based on their username?
Lets say.... Paul ...... index.html Jim ...... yahoo.com any simple solutions with .htaccess? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Feb 2001
Location: UK
Posts: 543
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |