Jump to content


Photo

Help With Redirect After Moving To Https


  • Please log in to reply
3 replies to this topic

#1 pritisen

pritisen
  • Members
  • 2 posts

Posted 16 February 2017 - 05:13 AM

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.

Priti Sen

 

Data Centers in India


#2 TCH-Marshal

TCH-Marshal

    New To The Neighborhood

  • Staff
  • Pip
  • 20 posts

Posted 16 February 2017 - 02:27 PM

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.



#3 TCH-Thomas

TCH-Thomas

    Volunteer Moderator

  • Members
  • PipPipPipPip
  • 15,174 posts

Posted 17 February 2017 - 02:03 AM

Welcome to the forum, pritisen.:)


Thomas Jikrantz
Forum Moderator
TotalChoice Hosting, Inc.

Any links or suggestions for third party software/sites should be used at your own risk. My opinions and recommendations are not necessary those of TCH and TCH is not responsible.

As a Forum Moderator I can assist in answering many of your hosting related questions. However, I am unable to answer questions about specifics relating to your account such as billing and server related issues. Should you need assistance in these areas, please contact our Help Desk or our many other options. Another good place to find answers is with our help pages, tutorials and movie tutorials.
Web Hosting by Total Choice Web Hosting - 24/7 Help Desk

#4 pritisen

pritisen
  • Members
  • 2 posts

Posted 17 February 2017 - 05:58 AM

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.


Priti Sen

 

Data Centers in India





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users