Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Redirection of htaccess Only on Main Domain Not on Addon Domain

Discussion in 'General Discussion' started by JunJoo, Mar 2, 2019.

  1. JunJoo

    JunJoo Registered

    Joined:
    Mar 2, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Website Owner
    Hi!

    I googled a lot but couldn't find solution to my problem. My problem is I have many redirections on my primary domain.

    Like say for http to https , to remove page extension. for error document. to remove trailing slash etc...

    But now I have a addon domain and all the redirection is working on that aswell. Plus my addon domain is ending with a url like

    maindomain.com/addondomain.com

    That's what am getting if I place any htaccess redirection on my primary domain. I want to remove my addon domain from my redirection.

    I tried many rules but most of the time result is same or am getting 403 error page.

    Please help me to resolve this issue.

    Thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,809
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @JunJoo

    When you access your addon domain using the actual addon domain not the added subdomain or maindomain.com/addondomain.com what happens?

    How are you adding the redirects, are you using the UI and specifying that it's just for the primary domain when you're adding them? Do you have an example of a redirect rule you've added that is being imposed on the addon domain? (just be sure to remove any identifying information before adding here)


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice