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 01-06-2005, 10:55 AM   #1
Damian_Maxcash
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
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 10:59 AM   #2
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally Posted by damian2001
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
It's working as it is supposed to. You are not requesting a document that doesn't exist.

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.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 10:59 AM   #3
Addiction
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.
Addiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 11:10 AM   #4
some_idiot
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!
__________________

This AVS pays my mortgage!
some_idiot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 11:10 AM   #5
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally Posted by Addiction
Make an index.php with just this line of code in it.

<?header("Location:http://www.yourdomain.com");?>
Very nice loop!

When it redirects, it will automagically load index.php and send them back to the raw URL.
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 11:17 AM   #6
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
Thanks guys!
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-06-2005, 11:28 AM   #7
Workshop_Willy
Confirmed User
 
Join Date: Oct 2004
Location: Southern California
Posts: 452
Quote:
Originally Posted by damian2001
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
No such thing as a stupid question. Lots of good answers in here. Here's another one. As I understand it, you don't want anything other than a 404 appearing when someone hits a directory below your server root, correct? If that's the case, simply chmod all of those subdirectories to "700" and copy your 404 page (assuming it's custom and you want people to see something custom) to the 403 page. The http error message will be 403, but the page will be indentical to your 404. No need to muck around with htaccess then.

Just an option.
Workshop_Willy 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.