The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Regarding Wildcard Redirection

Discussion in 'General Discussion' started by Gav, Oct 5, 2016.

Tags:
  1. Gav

    Gav Registered

    Joined:
    Oct 5, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Hi

    I'm having a scenario
    which I cant figure out.
    I want to change my domain name
    from .Biz to .Com

    My scenario.

    1. My main domain in my hosting account is example.Biz

    2. My parked domain under aliases example.Com

    3. I need to redirect with Wilcard all my example.Biz to example.Com

    4. Why wildcard, because whenever people click my previous link on Google Search example.Biz/page1 it must redirect to example.Com/page1

    5. The CMS i am using for example.Biz is WordPress

    Hope you guys can help, Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    You could backup the account, remove the alias, and then modify the domain name associated with the account via:

    "WHM >> Account Functions >> Modify an Account"

    After that, add the previous domain name to the account as an Addon domain name, and configure a redirect rule in the .htaccess file with the new addon domain name's document root. Here's an example you may find helpful:

    .htaccess redirect all pages to new domain

    Thank you.
     
Loading...

Share This Page