Forum Moderators: phranque
[edited by: incrediBILL at 7:03 am (utc) on Aug 11, 2012]
[edit reason] fixed URLS, use Example.com [/edit]
RewriteCond %{HTTP_REFERER} www\.example\.com [NC] The host had two files in the public folder when I moved to that host that were called 404.shtml and 403.shtml.
Or do you recommend having those custom pages?
The host had two files in the public folder when I moved to that host that were called 404.shtml and 403.shtml. But they were causing issues with the index.php file I had
the error log showed that the server was looking for those error pages. So, I assume I need to replace them
or you have the option of reverting to the default hard-coded apache error message sent with the error:
Initially, all error pages are set to "Default". To set a custom error page, choose "Custom URL" and enter the path to the corresponding error page in the field. If you haven''t created one yet, do this first and then get back to the Subdomain Manager section to update the settings.
And, Don, if I did this:
RewriteRule (403\.shtml|404\.shtml)$ - [F]
That would keep the server from looking for those custom pages and just serve up the standard error messages? That way I wouldn't need the custom pages. Or do you recommend having those custom pages?
RewriteRule (403\.shtml|404\.shtml)$ - [F]
That would keep the server from looking for those custom pages and just serve up the standard error messages?
has the beginning html, head, title, body codes, but does not have the ending body and html codes. I wouldn't think it would work without them.
It doesn't matter where you put it, you always need to refer to it using the ErrorDocument directive in the htaccess file. This reference must include path and file only, NOT protocol or hostname.