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.

.htaccess question

Discussion in 'General Discussion' started by pixelpadre, Jan 31, 2014.

  1. pixelpadre

    pixelpadre Member

    Joined:
    Aug 24, 2011
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Here is a dilemma that has not been solved to my knowledge.

    Problem occurs with shared hosting when numerous domains exist and you add some code in htaccess of the root directory to forward all mobile users to a mobile site.... m.mysite.com. Once that htaccess has the code then all of the remaining domains will redirect to the one mobile webiste m.mysite.com. I found that I could defeat this by putting the same htaccess code into the root of each domain and edit the code to redirect to itself. But that doesnt sound like the best alternative.

    Any ideas?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    What specific rewrite rules are you using in the .htaccess file? It seems like a case where using an alternate rewrite rule might work.

    Thank you.
     
Loading...

Share This Page