etsted Posted March 28, 2014 Share Posted March 28, 2014 i am trying to use a .htaccess on my website, but it wont work. When i try to write in a fake url in the address bar i get the following error: Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. this is my .htaccess file: # 1 ---- Establish a custom 404 File not Found page ----ErrorDocument 404 /index.php# 2 ---- Prevent directory file listing in all of your folders ----IndexIgnore * this is the fake url i used when testing the .htaccess: http://localhost/root/fdsdf.php // all of my files are stored inside "root" Link to comment Share on other sites More sharing options...
justsomeguy Posted March 28, 2014 Share Posted March 28, 2014 Do you have a localhost/index.php page? That's what you're telling it to use for 404. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now