Hi, hope someone can help. I have recently installed a SSL Certificate on my site and in the process of creating 301 redirects via the .htaccess file for nearly 400 page urls (to keep Google happy and my page rankings). I thought of using;
redirect 301 /contact.php https://www.mydomainname.co.uk/contact.php
redirect 301 /services.php https://www.mydomainname.co.uk/services.php
etc
but it breaks the site. The only solution I have seen is;
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^contact.php$ https://www.mydomainname.co.uk/contact.php [L,R=301]
The above seems a lot of code to use for each of the 400 pages! is there a quicker way with less code I can use in the .htaccess file?
Many thanks. Hope someone can advise.