1. This website uses cookies to improve service and provide a tailored user experience. By using this site, you agree to this use. See our Cookie Policy.
    Dismiss Notice

https to https 301 redirection?

Discussion in 'White Hat SEO' started by hwaback, Mar 26, 2020.

  1. hwaback

    hwaback Registered Member

    Joined:
    Dec 3, 2019
    Messages:
    57
    Likes Received:
    9
    Gender:
    Male
  2. liyong601c

    liyong601c Jr. VIP Jr. VIP

    Joined:
    Mar 30, 2010
    Messages:
    676
    Likes Received:
    198
    Occupation:
    Social Marketing & influencer marketing
    Location:
    Mars
    Home Page:
    Use cloudflare.
     
    • Thanks Thanks x 1
  3. hwaback

    hwaback Registered Member

    Joined:
    Dec 3, 2019
    Messages:
    57
    Likes Received:
    9
    Gender:
    Male
    New-domain doesn't use cloudflares.
    Can only old-domains use Cloudflare free dns?
     
  4. igtaya

    igtaya Jr. VIP Jr. VIP

    Joined:
    Jan 12, 2020
    Messages:
    105
    Likes Received:
    37
    Gender:
    Male
    Location:
    Paris
    Home Page:
    In your old site open your .htaccess some times it is a hidden.

    RewriteEngine on
    RewriteRule ^(.*)$ http://new.com/$1 [R=301,L]

    ^(.*)$ means take the page, not including the domain. This will be put in the variable #1. So $1 will be the name of the page.

    Example for http://old.com/aaa/bbb/page.html

    $1 will be interpreted as aaa/bbb/page.html and so redirected to
    http://new.com/aaa/bbb/page.html

    Is this what you are looking for? I yes please test it and let us know ;)
     
    • Thanks Thanks x 1
  5. hwaback

    hwaback Registered Member

    Joined:
    Dec 3, 2019
    Messages:
    57
    Likes Received:
    9
    Gender:
    Male
    Thank you. I succeeded using dns.
     
  6. igtaya

    igtaya Jr. VIP Jr. VIP

    Joined:
    Jan 12, 2020
    Messages:
    105
    Likes Received:
    37
    Gender:
    Male
    Location:
    Paris
    Home Page:
    Ok cool!
     
    • Thanks Thanks x 1