• Hi –
    I have read about 24 threads on redirects here, but they all seem to assume that either
    1. the redirects are from one WP site to another, or
    2. the redirects are from one page pof the same name to another of the same name.

    I have a situation where the client wants to redirect from an old, hand-coded site, to a new WP site, and has given me redirect map of 21 redirects for individual pages. The old site is in fact coded in PHP but is not WP, and unfortunately the pages are not named the same in the new site. To further complicate things, the two domains are not hosted on the same account.
    The client’s SEO guru is adamant about the individual page redirects so the new site won’t lose and “SEO juice” during the transition.

    For example, he wants this:
    https://old-domain.com/onepage.php redirects to https://new-domain.com/anotherpagename/

    What I have so far is this:

    RewriteEngine On
    Redirect 301 https://old-domain.com/ https://new-domain.com/
    Redirect 301 https://old-domain.com/aboutus.php https://new-domain.com/about/
    Redirect 301 https://old-domain.com/ourservices.php https://new-domain.com/services/
    Redirect 301 https://old-domain.com/contactus.php https://new-domain.com/contact/
    Redirect 301 https://old-domain.com/contactus.php https://new-domain.com/contact/quote/

    I have put this htaccess file has to be in the root of the old-domain.com
    now the domain redirects and the pages show up properly – you can see the link address in the bottom of the browser and it is the new-domain.com address – but the URL in the address bar does not change to new-domain.com

    If anyone has any ideas about how I can fix this, I would be very grateful.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try speaking to your hosting provider.

    This is not a WordPress issue, you just need to figure out how to get 301 redirects working correctly.

    There are quite a few different ways of doing 301s, if you are struggling you can try a different method.

    Not sure how much of a difference it will make, but this is the correct format:

    Redirect 301 /about.html https://new-domain.com/about.html

    > The client’s SEO guru is adamant about the individual page redirects so the new site won’t lose and “SEO juice” during the transition.

    He/she is correct, it is a good idea to do this.

    jack randall

    (@theotherlebowski)

    definitely not a wordpress issue. you need to read up on domain name management and redirects which can all be managed from your hosting or domain name registrar control panels.

    301 redirect code is what you’re after.

    Thread Starter Webrider

    (@webrider)

    I have already spoken to the hosting provider for thee old site before posting here – they can’t or won’t help. ??

    jack randall

    (@theotherlebowski)

    if you have access to the domain name registrar account where the domain name was purchased you should be able to manage web forwarding from there.

    > I have already spoken to the hosting provider for thee old site before posting here – they can’t or won’t help. ??

    Sometimes the problem is how you ask.

    Eg if you started talking about WordPress – they will often immediately use their “We can’t help with WordPress” get out of jail free card.

    Just call them and tell them you want to set up a simple 301 redirect. If they can’t even help with that… then you need to chance hosts.

    Thread Starter Webrider

    (@webrider)

    I did not mention WP – I asked if they could help me set up a number of 301 redirects for the pages to the URLs of the WP site – nothing in the new page URLs indicates it’s a WP site (pretty permalinks. yay!)
    The tech support there simply said they can’t help, they don’t know how to do page-to-page redirects, they only deal with domain-level redirects, but that won’y work in this case, since the page names are not the same. Unfortunately, changing hosts is not an option – my client is not able to do that, for reasons they choose not to share with me.

    I know this is not a WP specific question – I did try Google first a couple of different ways, but no joy there. I guess I’ll look for a more general help forum.

    Thanks, everyone.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘how can I redirect individual pages from a static site to a WP site using htacce’ is closed to new replies.