Https and 404 code that goes into htaccess
-
The 404 error code we put into htaccess files for our websites does not work correctly for our https site.
We recently changed one of our http sites to https.
When we went to create a 404.html page for it by creating an htaccess folder with the 404 error code in it, once we uploaded the file all of our webpages were displaying incorrectly, as if the css was not attached.
The 404 code we used works successfully for our other 404.html pages for our other sites (www.telfordinc.com/404.html). However, it does not work for the https site.
Below is the 404 error code we are using for our https site (currently not uploaded until pages display correctly)
ErrorDocument 404 /404-error.html
RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?privatemoneyhardmoneyloan.com/.*$ [NC] RewriteRule .(gif|jpg|js|css)$ - [F]
Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.privatemoneyhardmoneyloan.com$ [NC] RewriteRule ^(.*)$ http://www.privatemoneyhardmoneyloan.com/$1 [R=301,L]
So we want to know if there is a different 404 error code that goes into the htaccess file for an https vs. http?
Appreciate your feedback on this issue