Jump to content

.htaccess can't show my 503 custom error page


holly9

Recommended Posts

Hi I use fake IP to check if my 503 custom error page works but it doesn't?. I have another question should i stop people from hotlinking to my rss feed which is also sitemap? and stop people from hotlinking to my robots.txt?. Thanks

 

 

 
 
RewriteEngine on
 
RewriteBase /
 
 
#UNCOMMENT THE THREE LINES BELOW TO TAKE OFF www
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^adjade\.com
RewriteRule (.*) http://adjade.com/$1 [R=301,L]

#403 has same page as 404 for security

ErrorDocument 403 /errormessages/404.html

ErrorDocument 404 /errormessages/404.html

ErrorDocument 401 /errormessages/401.html

ErrorDocument 500 /errormessages/500.html

ErrorDocument 400 /errormessages/400.html




ErrorDocument 503 /errormessages/503.html
 
# TO ALLOW YOURSELF TO VISIT THE SITE, CHANGE IP TO YOUR IP ADDRESS.
#UNCOMMENT THE TWO LINES BELOW TO GO OFF LINE
RewriteCond %{REMOTE_ADDR} !^11\.111\.111\.11$
RewriteRule .* - [R=503,L]
 
 
 

  • 10 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.