Jump to content
MDDHosting Forums

Help me rewrite htaccess error page descriptions for add-on domain


Recommended Posts

Today my error log showed:


[NOTICE] [/home/***/public_html/$$$.com/.htaccess:2] absolute URL [https://$$$.com/401.htm] is not allowed for 401 custom error page. ignoring!


...where *** is my owner name and *** is the add-on domain name.


Inasmuch as I am no special expert in .htaccess, my entries therein have been copied and pasted from sources elsewhere over many years. The .htaccess file for $$$.com contains:


ErrorDocument 401 https://$$$.com/401.htm


Also, at the end of its .htaccess, is


RewriteEngine On

RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]

RewriteRule ^(.*) https://%1/$1 [R=301,NE,L]

RewriteCond %{HTTPS} !on

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}


I suspect my misinformation has yielded the error. I would appreciate any advice that would help me *understand* and correct it

Link to comment
Share on other sites

Join the conversation

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

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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