![]() |
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 |
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. |
Make an index.php with just this line of code in it.
<?header("Location:http://www.yourdomain.com");?> |
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! |
Quote:
When it redirects, it will automagically load index.php and send them back to the raw URL. |
Thanks guys! :)
|
Quote:
Just an option. |
All times are GMT -7. The time now is 08:09 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123