Jump to content

.htaccess


etsted

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...