SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: Error pages and .htaccess
-
May 1, 2008, 10:02 #1
- Join Date
- Jul 2004
- Location
- England
- Posts
- 588
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Error pages and .htaccess
Just upgraded to VPS from shared - stumbling around a whole new world of Apache and Plesk.
I'd previously used an htaccess file in the main directory to deliver site-wide error pages. This now doesn't work - and I've read it's better for the server to use the default error handling.
My httpd.include lists a bunch of em, like...
ErrorDocument 403 /error_docs/forbidden.html
ErrorDocument 404 /error_docs/not_found.html
Can I edit the httpd.include and rename the files, to use .php instead of .html?
Or is there a way to be using one or more .htaccess files as before - some of my directories are members only and had additional .htaccess files to allow only members to view, and I'm wondering if they'll still work.
-
May 1, 2008, 14:43 #2
- Join Date
- Feb 2002
- Location
- Auckland
- Posts
- 14,692
- Mentioned
- 20 Post(s)
- Tagged
- 3 Thread(s)
gull,
The thing about a shared server is that you can NOT edit httpd.anything. The most control you have is over .htaccess but the DocumentRoot should be valid for the entire site (Addon Domains will have to repeat for their own domain - it's a "pointer" thing).
Yes, your "other" .htaccess should continue to work - assuming that the shared host allows you to modify your .htaccess and has retained that name.
Regards,
DKDavid K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
-
May 1, 2008, 22:35 #3
- Join Date
- Jul 2004
- Location
- England
- Posts
- 588
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks.
Bookmarks