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]
 
 
 

Link to comment
Share on other sites

  • 10 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.