• I have an old wordpress.com site with the url https://www.hebrewtourguidetokyo.com

    I bought this domain a new host to rebuild him on wp.org, and gave the old site my old domain which is hebrewtourguidejapan.com.

    Now I need to 301 redirects all the pages from the other domain (japan) to the main domain (Tokyo).

    btw, I changed the pages name so it won’t be same address (/..)

    Can someone please can explain that to me in a language I can understand?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    You need to use the server’s rewrite engine via an .htaccess file to rewrite all requests for old domain to new domain. Assuming the hosting is on an Apache server. Lots of info out there on rewrite rules.

    Changing page names makes writing rewrites much more difficult unless there is a uniform way in which the names changed. Like if all pages now have “-new” added to the old slug, no big deal. If there is no uniform pattern you need to make a new rule for every page.

    Thread Starter Mindiscover

    (@mindiscover)

    Hey bcworkz, Thanks for the comment!

    My old domain is hosted on wordpress.com is it possible that it has an Apach server?

    And about the page URL, If I will change the pages url to make it the same as the old site will it make it easier?

    Thread Starter Mindiscover

    (@mindiscover)

    BTW- If I will make the same URL ends as this following example:

    https://www.hebrewtourguidetokyo.com/tours/tour1
    https://www.hebrewtourguidejapan.com/tours/tour1

    Won’t it be enough to just 301 redirects the old URL to the new one?

    What about the ranking score? will google crawls just follows it?

    Moderator bcworkz

    (@bcworkz)

    You won’t be able to alter wordpress.com files regardless of their server (I think they use nginx FWIW). You don’t need to. Change both of your domain’s DNS settings to point to your new hosted server. On that server (assuming Apache) you place the rewrite rules.

    The rule logic will go like this (pseudocode syntax, not .htaccess):

    if request string has "hebrewtourguidejapan.com" in it
    then change just the "japan" part to "tokyo", leave the rest as is
    also send a 301 redirect header with the response

    Following that logic, you can see how not changing page slugs is beneficial, because then you do not need to setup rewrite rules for each changed slug, the one rule covers everything.

    I’m pretty sure doing it this way means the page will retain it’s page rank. You should check Google’s docs, they should have specific recommendations on the proper way to do rewrites to maintain page rank. AFAIK, when Google crawls the old URL, they’ll get the 301 notice and automatically update their data to reflect the new URL, you need not do anything else. Though you should go into Google Search Console in a while to be sure it’s all working as expected.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How save my rank while transferring the url’ is closed to new replies.