Forum Moderators: phranque

Message Too Old, No Replies

HTTPS Redirect

How to change from https://... to www... in Google

         

imweb

9:57 am on Nov 22, 2005 (gmt 0)

10+ Year Member



Searching site:www.domain.com in G produces several pages with [domain.com...] In the past it was linked as https. Currently links are correct using absolute URL.

Yahoo and MSN index pages correctly (without https). Look like they follow latest links.

Now I would like to put a 301 redirect such that a request to that URL will be redirected to [domain.com...] This way I want to make sure Google will not list it as dupe.

Appreciate any feedback how to do it in .htaccess file.

le_gber

10:22 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



try googleing for the RedirectMatch command

jdMorgan

5:24 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using mod_rewrite:

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

Jim

imweb

8:48 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



Wow... It works like a charm. Thank you very much.