Jump to content

Recommended Posts

Here is the issue i'm having

 

I used a 301 redirect in htaccess to redirect a site that previously was a https.  Links from google point to https. The problem is users are getting a warning message when clicking on https links from google before the 301 kicks in because the old domain is not longer ssl'ed.  What to do?

 

Thanks in advance

 

Link to comment
https://forums.phpfreaks.com/topic/250055-301-redirect-issues/
Share on other sites

Anyone?  I think all that needs to happen is we need to take users from https to http.  However we already have a 301 redirect happening.  Below is what I have

 

 

Redirect 301 / http://www.newwebsite.com/

 

I tried the following:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^(.*)$ http://www.oldwebsite.com/$1 [R=301,L]

 

The redirect works fine but still getting a error when visiting the https version.  Please help!

Link to comment
https://forums.phpfreaks.com/topic/250055-301-redirect-issues/#findComment-1283557
Share on other sites

Do you have access to edit the VirtualHost? It's certainly not going to be possible to do anything using .htaccess, but theoretically it may be possible to redirect from the vhost. Information in the request is encrypted so you won't have access to it until a certificate is loaded, but it must know what port the connection came in on, it may therefore be theoretically possible to redirect at that point.

Link to comment
https://forums.phpfreaks.com/topic/250055-301-redirect-issues/#findComment-1284409
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.