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
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 08-31-2005, 07:48 PM   #1
kektex
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: elkektex at gmail
Posts: 1,813
Any .htaccess masters?

I need some sort of .htaccess rule which will do the following:
I have a bunch of images in a folder that are hotlinked on other servers.I want to delete all these images and redirect all these 404`s so that instead of the hotlinkers getting a nice red X they`ll get a new image I`ll upload to my server.
I know there is a way to do it but I don`t know how.Anyone?
__________________
exgfmovies.com, exgfclips.com, datesx.com, gayboards.com and more!
kektex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2005, 07:55 PM   #2
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
http://www.htaccesstools.com/hotlink-protection/
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2005, 08:01 PM   #3
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
rewriteEngine on
rewriteRule ^http://www.your-site.com/directory-of-images/(.*)$ http://www.your-site.com/newfile.jpg [R=301,L]

everything after 'rewriteEngine on' should be on one line..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2005, 08:09 PM   #4
kektex
Confirmed User
 
Industry Role:
Join Date: Mar 2005
Location: elkektex at gmail
Posts: 1,813
Thanks for the help!
Since I was planning to delete the images anyway I found a simple rule for 404`s:
ErrorDocument 404 http://www.domain.com/newfile.jpg

Thanks again!
__________________
exgfmovies.com, exgfclips.com, datesx.com, gayboards.com and more!
kektex is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2005, 09:38 PM   #5
Lycanthrope
Confirmed User
 
Lycanthrope's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Wisconsin
Posts: 4,517
Quote:
Originally Posted by kektex
Thanks for the help!
Since I was planning to delete the images anyway I found a simple rule for 404`s:
ErrorDocument 404 http://www.domain.com/newfile.jpg

Thanks again!
Not sure how much / what sort of traffic you have on that domain, but that could be a waste of valuable non-image 404 traffic. The following code will redirect image "404s" to a default image, normal "document" 404s will be treated "normally".

RewriteEngine on
RewriteCond %{REQUEST_URI} !-U
RewriteRule \.(gif|jpg|jpeg)$ /your_path_to/new.gif [L]
# the following is for normal 404s
ErrorDocument 404 http://www.your404.com
__________________
Lycanthrope is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-31-2005, 09:40 PM   #6
pornguy
Too lazy to set a custom title
 
pornguy's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
Oh, thanks for reminding me.
__________________
PornGuy skype me pornguy_epic

AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
pornguy 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



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.