404 page

Thanks!!
Found this in the forum and thanks to this link found the good scrips. TOP.

Uploaded the following scripts to the server via .htaccess and everything works as it should.
#http:// to https://
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

#www to non-www
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteRule ^(.*)$ https://dilien.com/$1 [L,R=301]

RewriteEngine on RewriteRule ^/?(.*).(html)$ /$1 [R=301,L] RewriteEngine On ErrorDocument 404 https://dilien.com/404/ And everything is working fine.

Hope this is also the right way with regard to Google ranking.

Have another problem see:

1 Like