• I have set up a redirect for a client who changed her domain name on her site. The redirect is set up in CPanel, and it works, but the old domain name is showing up in the address instead of the new one. Clicking anywhere in the site goes to a page with the new URL, so there’s no problem staying there, but it looks odd to see the old URL in the address bar when the old URL redirects to the current site URL. How can I change it so the new URL shows up in the address?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi David ??

    Can you share the link so I can take a look? No problem if not, but without the address I could only speculate as to why this is happening.

    Thread Starter David Borrink

    (@davidborrink)

    Sure. Here is a Pinterest pin that is linked to her old URL: https://www.pinterest.com/pin/294915475578258220/

    Take that link and you’ll arrive at her site on that page, but her old URL is in the address bar. Click on any link in her site, and it will go to her new URL at ticiamessing.com. I’m assuming that the arrival link is on ticiamessing.com and not adventuresinmommydom.org which is the old URL. That URL was renamed and is working fine. I have a redirect set up for that in CPanel.

    It looks like the redirect is working correctly for domain but only matches the domain exactly without any slugs. E.g.

    This can be confirmed with the following wget commands:

    wget -SO- -T 5 -t 1 https://adventuresinmommydom.org | more
    --2021-08-07 12:56:45--  https://adventuresinmommydom.org/
    Resolving adventuresinmommydom.org (adventuresinmommydom.org)... 216.158.227.83
    Connecting to adventuresinmommydom.org (adventuresinmommydom.org)|216.158.227.83|:80... connected.
    HTTP request sent, awaiting response...
      HTTP/1.1 301 Moved Permanently
      Connection: Keep-Alive
      Keep-Alive: timeout=5, max=100
      content-type: text/html
      content-length: 707
      date: Sat, 07 Aug 2021 11:56:45 GMT
      server: LiteSpeed
      location: https://ticiamessing.com/
    Location: https://ticiamessing.com/ [following]
    wget -SO- -T 5 -t 1 https://adventuresinmommydom.org/science-sundays/ | more
    --2021-08-07 13:03:03--  https://adventuresinmommydom.org/science-sundays/
    Resolving adventuresinmommydom.org (adventuresinmommydom.org)... 216.158.227.83
    Connecting to adventuresinmommydom.org (adventuresinmommydom.org)|216.158.227.83|:80... connected.
    HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Connection: Keep-Alive
      Keep-Alive: timeout=5, max=100
      content-type: text/html; charset=UTF-8
      x-pingback: https://ticiamessing.com/xmlrpc.php
      link: <https://ticiamessing.com/wp-json/>; rel="https://api.w.org/"
      link: <https://ticiamessing.com/wp-json/wp/v2/pages/2521>; rel="alternate"; type="application/json"
      link: <https://ticiamessing.com/?p=2521>; rel=shortlink
      x-litespeed-cache-control: public,max-age=28800
      x-litespeed-tag: ec0_HTTP.200,ec0_page,ec0_URL.384284c2754c2473cebd747c8e5bbc00,ec0_Po.2521,ec0_PGS,ec0_
      etag: "100763-1628337785;;;"
      x-litespeed-cache: miss
      transfer-encoding: chunked
      date: Sat, 07 Aug 2021 12:03:05 GMT
      server: LiteSpeed

    Does CPanel offer the option to do a “Wild Card Redirect”? If so, this should redirect all pages on the old domain to the new domain.

    Does CPanel offer the option to do a “Wild Card Redirect”? If so, this should redirect all pages on the old domain to the new domain.

    yes Cpanel does support wildcard, it’s right above the add button in the redirect section

    Thread Starter David Borrink

    (@davidborrink)

    Okay, I’ll set up CPanel to do with a wild card and see if that helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Redirected link to new URL shows old URL in the address’ is closed to new replies.