Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess problems - not going to the right 404 error page

Status
Not open for further replies.

cturner01

Technical User
Aug 1, 2006
29
AU
I am trying to write a .htaccess file so when someone visits my client's website and types the wrong web page into the browser, I want them to be redirected to the home page. Well it just goes to the web hosting account's 404 error page. Also I have made sure that the file attributes are 644. I have asked my hosting provider whether I can do this and they said it would be all right. This is what is in the .htaccess file at the moment: ErrorDocument 404 /index.php. Is there something I am missing?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top