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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-17-2002, 07:21 AM   #1
Scootermuze
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!!
Scootermuze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2002, 07:39 AM   #2
andi_germany
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.
andi_germany is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2002, 07:42 AM   #3
Sexproject
Registered User
 
Join Date: Oct 2002
Location: Ohio
Posts: 22
"Simple .htaccess..."?!

Mine has 2 lines and they don't look anything like that!
__________________
Matt B, Webmaster
The Sex Project: THE sex guide.
http://www.sex-project.com
Sexproject is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2002, 07:48 AM   #4
Validus
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?
Validus is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2002, 08:03 AM   #5
Scootermuze
Confirmed User
 
Join Date: Dec 2001
Posts: 4,513
Quote:
Originally posted by andi_germany
Try the full URL with http://

That seems to have fixed it...

Thanks..
Scootermuze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-17-2002, 09:43 AM   #6
richard
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.
richard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.