[Help] .htaccess for modrewrite URL SSL addon domain

Discussion in 'Site & Server Administration' started by bnbn1382, Sep 24, 2010.

  1. #1
    Hi.
    I have a Primary domain and an add-on domain.
    (xxx.com and xx.com not xx.xxx.com)
    When I put https:// or .htaccess rewrite rule for that on the add-on domain, it automatically leads to primary domain page instead of add-on domain page.

    Is there any way to fix this? so it actually shows add-on domain page right away without doing https://primarydomain.com/addondomain ?
    like to https://addondomain.com and show addondomain.com page?

    I have had problems with this and I think .htaccess rewrite rule will work.

    Maybe if ....
    1. Force https:// from http://
    2. Force redirct url
    3. URL Rewriting

    Can anyone make me this?

    I have seen sites that have always: http://www.xxx.com and never had http://www.xxx.com/[any other lines here]
    How do you do that as well? ( But i want the history to show up http://www.xxx.com ONLY not www.xxx.com/[any other line here] like others.
     
    bnbn1382, Sep 24, 2010 IP
  2. bnbn1382

    bnbn1382 Peon

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    bnbn1382, Sep 25, 2010 IP
  3. extremephp

    extremephp Peon

    Messages:
    1,290
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Did You add the SSL Redirection On the Htaccess inside the Addon Domain's Folder? IF then, This shouldnt happen!

    ~ExP~
     
    extremephp, Sep 25, 2010 IP
  4. bnbn1382

    bnbn1382 Peon

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It didn't work, when I put it on the primary domain.
    I put it under addon domain's folder
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.xx.com/$1 [R,L]
    Code (markup):
     
    bnbn1382, Sep 26, 2010 IP
  5. bnbn1382

    bnbn1382 Peon

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I don't know how to create rewrite rule from here.
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.xx.com/xx$1 [R,L]
    Code (markup):
    Now it leads to SSL Add-on domain page, but instead of showing www.xx.com, it shows www.xx.com/xx.
    I want to make it so it (url rewrites) shows to www.xx.com on address bar, when it is actually showing www.xx.com/xx
     
    bnbn1382, Sep 26, 2010 IP
  6. zomex

    zomex Well-Known Member

    Messages:
    194
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    135
    #6
    Hello,

    I don't think you can install an SSL certificate on a addon domain because it's not possible to install a dedicated IP on an addon domain.

    Sorry man.

    Jack
     
    zomex, Sep 26, 2010 IP
  7. bnbn1382

    bnbn1382 Peon

    Messages:
    134
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have dedicated IP on my primary domain.
    I don't want to install the SSL on my addon.
    Just a "spoof" https:// not http://
     
    bnbn1382, Sep 26, 2010 IP