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-23-2006, 02:28 AM   #1
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
Htaccess code to redirect folders root with no index ?

Right now It just appears as an empty folder... i wanna redirect it to the main page... tried to google it but can't find it.
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:44 AM   #2
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Not sure if this is what you want....


Redirect /emptydirectory/ http://yoursite.com/whatever.htm

Mmmm.. not sure about the slash after emptydirectory - may have to drop that
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:45 AM   #3
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
It's not the empty directories I want to refresh, but the ones that are full but have no index page. I want it done automacly (not folder by folder). I have thousands of them on the site...

I accidently re-wrote htaccess
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:47 AM   #4
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Put this in your .htaccess:
Code:
DirectoryIndex main.html, index.html, index,shtml, index.php
This redefines the order in which it looks for your index pages. If you leave it only to main.html (assuming that's the name of your main page, if not rename as fit), then it will look for it in all further subdirectories. Thus the need to add more pages to the list.
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:48 AM   #5
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Again.. not sure

DirectoryIndex whatever.htm

ie.. where there is no default index and you want to address a main page as the default index?
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:49 AM   #6
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Quote:
Originally Posted by DamageX
Put this in your .htaccess:
Code:
DirectoryIndex main.html, index.html, index,shtml, index.php
This redefines the order in which it looks for your index pages. If you leave it only to main.html (assuming that's the name of your main page, if not rename as fit), then it will look for it in all further subdirectories. Thus the need to add more pages to the list.
Gittin there!
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:51 AM   #7
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
Quote:
Originally Posted by DamageX
Put this in your .htaccess:
Code:
DirectoryIndex main.html, index.html, index,shtml, index.php
This redefines the order in which it looks for your index pages. If you leave it only to main.html (assuming that's the name of your main page, if not rename as fit), then it will look for it in all further subdirectories. Thus the need to add more pages to the list.
Thanks for your time but what I want to do is :

when there is no index file, it just redirects to the site URL.
Basicly i got hundreads of folders containing galleries but do not use any index page. users try too type new folders to see if there are more galleries... so i want to use the 404 traffic to feed a tgp.
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:52 AM   #8
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
Quote:
Originally Posted by Webby
Again.. not sure

DirectoryIndex whatever.htm

ie.. where there is no default index and you want to address a main page as the default index?
DirectoryIndex http://www.mydomain.com
That would redirect the index to my domain when there is no index.htm file ?
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:55 AM   #9
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Got ya!

We talking 404's to cover this?

ErrorDocument 404 /yourpage.htm
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:56 AM   #10
DamageX
Marketing & Strategy
 
DamageX's Avatar
 
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
Quote:
Originally Posted by Doctor Dre
Thanks for your time but what I want to do is :

when there is no index file, it just redirects to the site URL.
Basicly i got hundreads of folders containing galleries but do not use any index page. users try too type new folders to see if there are more galleries... so i want to use the 404 traffic to feed a tgp.
Use this then:

Code:
ErrorDocument 404 http://www.domaintoredirectto.com/pagetoredirectto.html
__________________
Whitehat is for chumps

If you don't do it, somebody else will - true story!
DamageX is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 02:59 AM   #11
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
Quote:
Originally Posted by Webby
Got ya!

We talking 404's to cover this?

ErrorDocument 404 /yourpage.htm
If they hit my root directory up and the folder exist it's not a 404 error ...
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:07 AM   #12
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Quote:
Originally Posted by Doctor Dre
If they hit my root directory up and the folder exist it's not a 404 error ...
OK!!! Not getting bits yet...

If you have a local drive mirror of this content - how about getting a dir listing and making up one default index.htm which simply redirects to "wherever" and letting a batch file stuff a copy into each dir?
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:10 AM   #13
Doctor Dre
Too lazy to set a custom title
 
Doctor Dre's Avatar
 
Industry Role:
Join Date: Jan 2001
Posts: 51,692
Quote:
Originally Posted by Webby
OK!!! Not getting bits yet...

If you have a local drive mirror of this content - how about getting a dir listing and making up one default index.htm which simply redirects to "wherever" and letting a batch file stuff a copy into each dir?
Too much trouble I have gigs of content on there and I don't wanna waste the day.

There is a htaccess code... I know it cauz i was using it... I overwrote it by accident.
__________________
Quote:
Originally Posted by rayadp05 View Post
I rebooted, deleted temp files, history, cookies and everything...still cannot view the news clip. All I see is that fucking gay ass music video from "Rick Roll". Anyone else have a different link to the news clip?
Doctor Dre is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:15 AM   #14
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Ah... OK Doc... So can be covered at the server end..

Any clues as to what was used in the htaccess?

Where is ServerGenius when ya need him?
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:20 AM   #15
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
in htaccess (in your DocumentRoot)

Options -indexes
ErrorDocument 403 /
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:23 AM   #16
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
This got anything to do with directory browsing??

Ah... is it an ErrorDocument 403??
__________________
XXX TLD's - Another mosquito to swat.
Webby is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:33 AM   #17
TheSwed
Confirmed User
 
TheSwed's Avatar
 
Join Date: Feb 2004
Location: Sweden.
Posts: 3,483
Take a look here http://www.freewebmasterhelp.com/tutorials/htaccess/2

maybe you find what you looking for
TheSwed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:35 AM   #18
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
Quote:
Originally Posted by Webby
This got anything to do with directory browsing??

Ah... is it an ErrorDocument 403??

Well when you turn off directory browsing using : Options -Indexes

then it turns into a 403 forbidden error
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-23-2006, 03:39 AM   #19
Webby
Too lazy to set a custom title
 
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
Quote:
Originally Posted by boldy
Well when you turn off directory browsing using : Options -Indexes

then it turns into a 403 forbidden error
Got to be something like that which fits whatever is needed
__________________
XXX TLD's - Another mosquito to swat.
Webby 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.