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 02-26-2005, 11:41 PM   #1
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Is it possible to assign a 404 page only to a certain folder or directory?

see title, thanks
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2005, 11:44 PM   #2
Rictor
Old Timer
 
Industry Role:
Join Date: Jan 2001
Location: Indianapolis
Posts: 12,208
Yah, give that folder it's own .htaccess file.
Rictor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2005, 11:44 PM   #3
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Yes ...

In the directory you want protected put:

ReWriteEngine On
blah blah blah

in a directory you want to unprotect underneath that directory in the tree put this in your .htaccess

ReWriteEngine Off
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-26-2005, 11:50 PM   #4
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
I have a buttload of galleries, like this:

gallery-pages/page/files/thumbs/thumb.jpg
gallery-pages/page/files/pictures/picture.jpg

I want the gallery pages to work, show the thumbnails, but I'd like to redirect the thumb clicks to the sponsor rather than the actual picture. What's the best way to redirect requests for the /pictures folder, without affecting my gallery-pages?

(I know I said 404 earlier, I didn't think it through all the way.)

Last edited by Wolfy; 02-26-2005 at 11:52 PM..
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:07 AM   #5
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
one more bump for the wolfster, help me out here :D
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:10 AM   #6
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally Posted by Wolfy
I have a buttload of galleries, like this:

gallery-pages/page/files/thumbs/thumb.jpg
gallery-pages/page/files/pictures/picture.jpg

I want the gallery pages to work, show the thumbnails, but I'd like to redirect the thumb clicks to the sponsor rather than the actual picture. What's the best way to redirect requests for the /pictures folder, without affecting my gallery-pages?

(I know I said 404 earlier, I didn't think it through all the way.)
ok slow down and speak english ...

you want the thumb clicks to go to the sponsor ?

you mean you don't want this gallery listed anywhere ?

I'm confussled.


Martha this damned interwebby thingy is messed up again. I may have downloaded the rest of the interwebby.
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:23 AM   #7
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
hahaha, sorry - long day. Yes, I want my thumb clicks to go to a sponsor.
Since the actual pictures are all in a subfolder - I figure if I can make that folder redirect I won't have to go through and replace close to 1000 links by hand.
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:25 AM   #8
Chio The Pirate
Confirmed User
 
Join Date: Oct 2002
Location: YARGH! On me big sailboat with the skull flags * * ICQ: 39-183769
Posts: 946
YARGH! I smell a banning on a lot of TGP's.

You should be careful when redirecting older submissions. Some tgp's will ban you for that.

If I misunderstood what you were askin'... AHOY! me hearties get back to yer decks, and eat some grilled guppies!
__________________

Need to get a site indexed in a few days? Want thousands of targeted, quality hits to your site? Want to beta test something that will revolutionize the way companies, and individuals advertise online.? Click here to take a look at Bliggo
Chio The Pirate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:25 AM   #9
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally Posted by Wolfy
hahaha, sorry - long day. Yes, I want my thumb clicks to go to a sponsor.
Since the actual pictures are all in a subfolder - I figure if I can make that folder redirect I won't have to go through and replace close to 1000 links by hand.
remove all pictures from that folder then and put an .htaccess in with this line:

ReDirect 404 http://mysponsor.tld/somepage.html/mycodewhatever
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:27 AM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Isn't that kinda shady? Why would you want to redirect thumbs on already made galleries?
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:45 AM   #11
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
They are my galleries on my site, so I want to try sending straight to the sponsor. If I was a submitter I would never do it, but that's not the case.

Always nice to see the pirate... You know why I don't let my kids watch pirate movies? Because they are rated "ARrrrrrrrrrrrrrrrrr...." :D
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 12:56 AM   #12
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
JFPdude, that didn't work.. I deleted all the files, put the htaccess with ONLY that line in it, and tested. It goes to my current 404. Any ideas?
Wolfy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 01:02 AM   #13
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
Quote:
Originally Posted by Wolfy
JFPdude, that didn't work.. I deleted all the files, put the htaccess with ONLY that line in it, and tested. It goes to my current 404. Any ideas?
ErrorDocument 404 http://www.google.com
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-27-2005, 01:07 AM   #14
Wolfy
Confirmed User
 
Wolfy's Avatar
 
Industry Role:
Join Date: Dec 2003
Location: Wisconsin
Posts: 3,574
Quote:
Originally Posted by woj
ErrorDocument 404 http://www.google.com
That worked, thanks for the help everyone
Wolfy 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.