GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Is it possible to assign a 404 page only to a certain folder or directory? (https://gfy.com/showthread.php?t=437483)

Wolfy 02-26-2005 11:41 PM

Is it possible to assign a 404 page only to a certain folder or directory?
 
see title, thanks

Rictor 02-26-2005 11:44 PM

Yah, give that folder it's own .htaccess file.

JFPdude 02-26-2005 11:44 PM

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

Wolfy 02-26-2005 11:50 PM

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.)

Wolfy 02-27-2005 12:07 AM

one more bump for the wolfster, help me out here :D

JFPdude 02-27-2005 12:10 AM

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. :arcadefre


Martha this damned interwebby thingy is messed up again. I may have downloaded the rest of the interwebby.

Wolfy 02-27-2005 12:23 AM

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.

Chio The Pirate 02-27-2005 12:25 AM

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!

JFPdude 02-27-2005 12:25 AM

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

woj 02-27-2005 12:27 AM

Isn't that kinda shady? Why would you want to redirect thumbs on already made galleries?

Wolfy 02-27-2005 12:45 AM

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 02-27-2005 12:56 AM

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?

woj 02-27-2005 01:02 AM

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

Wolfy 02-27-2005 01:07 AM

Quote:

Originally Posted by woj
ErrorDocument 404 http://www.google.com

That worked, thanks for the help everyone


All times are GMT -7. The time now is 11:40 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123