![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Marketing & Strategy
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
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
Quote:
![]()
__________________
XXX TLD's - Another mosquito to swat. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jan 2001
Posts: 51,692
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jan 2001
Posts: 51,692
|
Quote:
That would redirect the index to my domain when there is no index.htm file ? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Marketing & Strategy
Industry Role:
Join Date: Jun 2001
Location: Former nomad
Posts: 14,293
|
Quote:
Code:
ErrorDocument 404 http://www.domaintoredirectto.com/pagetoredirectto.html
__________________
Whitehat is for chumps If you don't do it, somebody else will - true story!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jan 2001
Posts: 51,692
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Too lazy to set a custom title
Industry Role:
Join Date: Jan 2001
Posts: 51,692
|
Quote:
There is a htaccess code... I know it cauz i was using it... I overwrote it by accident. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Confirmed User
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Macdaddy coder
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
|
Quote:
Well when you turn off directory browsing using : Options -Indexes then it turns into a 403 forbidden error ![]()
__________________
MacDaddy Coder. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Too lazy to set a custom title
Join Date: Oct 2002
Location: Far far away - as possible
Posts: 14,956
|
Quote:
![]()
__________________
XXX TLD's - Another mosquito to swat. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |