How can I get my 404 page to show up in Google searches? The old website has been removed and replaced by a new website. Now when you search in Google and click on the link you will see this: https://dilien.com/contact.html
Created a 404 page in blocs and posted it online.
When I remove html at the end of the url then I have the correct page.
I don’t think Google typically index a 404 page. The page is basically just a way of saying they have arrived at an incorrect url.This is all I see at that address:
As Flashman has said you really want to setup 301 redirects.
I normally copy the URLs of key pages of the old site and then redirect them to the new equivalents with 301s when the site is replaced if they have changed.
A 301 redirect will update search engine index’s and also keep your ranking of those pages.
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]