Jump to content
Sign in to follow this  
pritisen

Help With Redirect After Moving To Https

Recommended Posts

Hello,


A month ago, on the site on WordPress completely changed the structure of the site. The .htaccess file is registered to more than 1000 redirects from the old URL to the new, not to lose traffic.


Today, we installed security certificate on the site's.


The .htaccess file is usually prescribed to all RLC started now with "https":




RewriteEngine On
RewriteCond% {SERVER_PORT}! ^ $ 443
. RewriteRule * https: //% {SERVER_NAME}% {REQUEST_URI} [R = 301, L]
#N WordPress



but now there is a problem of all other prescription redirects from the old URL to the new ...


They were registered as follows:



301 redirect /74-xyz.html https://site.com/xyz.html
301 redirect /personal_page/personal_page.html https://site.com/personal_page.html


etc.


But now all these rules do not work ....


If you try to go to the old kind of link - http://site.com/74-xyz.html , instead of forwarding the page https://site.com/xyz.html where Now there is an article in the address just added "s" and a link ceases to type http s : //site.com/ and get a 404 error.


I tried in the .htaccess file to register the full addresses of links, like so:



301 redirect http://site.com/74-xyz.html https://site.com/xyz.html


but also does not redirect to the new page, just add "s" ...


It turns out that in any way I will not be able to set up a 301 redirect from the old address to the http URL to the new modified so even with https? Or is there any options?


Thanks in advance for your help and sorry if I have shared my problem in wrong section.

Share this post


Link to post
Share on other sites

Hi Priti,

 

Https or secure url on Wordpress is a tricky thing especially when you have additional redirects on htaccess because Wordpress urls are mostly hard coded in databases with specific redirect requests in htaccess. Secure url for Wordpress can be best achieved by using additional plugins they offer purposely for this. There are many documentation and tutorials available in Worpdress support forums which you can refer about this. I would suggest you try any of those plugins or else if you wish we specifically take a look into this, open a helpdesk request with all details of your hosting account and we will advise you.

  • Like 1

Share this post


Link to post
Share on other sites

Hi Priti,

 

Https or secure url on Wordpress is a tricky thing especially when you have additional redirects on htaccess because Wordpress urls are mostly hard coded in databases with specific redirect requests in htaccess. Secure url for Wordpress can be best achieved by using additional plugins they offer purposely for this. There are many documentation and tutorials available in Worpdress support forums which you can refer about this. I would suggest you try any of those plugins or else if you wish we specifically take a look into this, open a helpdesk request with all details of your hosting account and we will advise you.

 

Thanks Marshal. Will try using some plugin to get this fixed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×