I'm using .htaccess for custom error pages and did this:
When I go to say example.com/somepagethatdoesntexistCode:# Custom Errors ErrorDocument 401 /sitemap?err=401 ErrorDocument 403 /sitemap?err=403 ErrorDocument 404 /sitemap?err=404 ErrorDocument 500 /sitemap?err=500
it gives me a defaultl 404 with an additional 500 when the ErrorDocument failed...
I don't know why this is. :/
Edit: May aswell put in my other problem..
The whole .htaccess is:
Portfolio and the actual sitemap?err=500 don't work.. I get a 500 from them. /portfolio does but /portfolio/print/1 doesn't, with sitemap, /sitemap doesn't sitemap?err=x doesn't either.Code:Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteRule ^services services.php RewriteRule ^about about.php RewriteRule ^portfolio portfolio.php RewriteRule ^portfolio/([A-Za-z0-9]+)/([0-9]+)/?$ portfolio.php?c=$1&id=$2 [L] RewriteRule ^hosting hosting.php RewriteRule ^quote quote.php RewriteRule ^contact contact.php RewriteRule ^blog blog.php RewriteRule ^press press.php RewriteRule ^affiliations affiliations.php RewriteRule ^faqs faqs.php RewriteRule ^sitemap(.*) sitemap.php$1 RewriteRule ^testimonials testimonials.php # Custom Errors ErrorDocument 401 /sitemap?err=401 ErrorDocument 403 /sitemap?err=403 ErrorDocument 404 /sitemap?err=404 ErrorDocument 500 /sitemap?err=500





lol.
Reply With Quote

