![]() |
![]() |
![]() |
||||
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 |
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
Stupid htaccesss question
I have removed all the pages on a domain
I put in an htaccess with 404 handling and it works ok Unless I go to the root ie. www.domain.com then it goes to the dir listing I thought it wouldnt find an index page and then go to the 404 What am I doing wrong?? Thanks ![]() Sorry for the stupid question |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 | |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
|
Quote:
If you really need to, you can redirect anything hitting domain.com to /index.html, which will then trigger the 404. I'm not sure why you would do this. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Join Date: Jan 2005
Posts: 20
|
Make an index.php with just this line of code in it.
<?header("Location:http://www.yourdomain.com");?>
__________________
all your traffic are belong to me. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: May 2002
Location: Doesn't matter, I'm not buying you another pint!
Posts: 1,511
|
It's doing this because in your httpd.conf you have it set to allow directory
listings. If you never need directories listed set the global to no. If you do need directories, then add a line to the virtual host section for no. list root directory = 200 success, not a 404 not found. Cheers! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
|
Quote:
When it redirects, it will automagically load index.php and send them back to the raw URL. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
So Fucking Banned
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
|
Thanks guys!
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Oct 2004
Location: Southern California
Posts: 452
|
Quote:
Just an option. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |