Jump to content

Help With Redirect After Moving To Https


pritisen

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.

Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...