We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32241
    • 1,495 Posts
    Here is the old htaccess code that I did to redirect the subdomain to the right virtual dir, but still allowing the real file to be access in the right way.

    # *****************************
    # MULTIPLE DOMAIN CONFIGURATION
    # *****************************
    
    # domain.net
    # ------------------
    RewriteCond %{HTTP_HOST} ^www\.domain\.net
    RewriteRule ^(.*)$ http://domain.net/$1 [R=permanent,L]
    
    RewriteCond %{HTTP_HOST} ^domain\.net
    RewriteRule ^shepboy\.com\.htm(.*)$ http://domain.net/ [R=permanent,L] 
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{HTTP_HOST} ^domain.net$ [OR]
    RewriteCond %{HTTP_HOST} ^domain.net:80$
    RewriteCond %{HTTP_HOST} !^$
    RewriteRule ^shepboy\.com(.*)$ http://domain.net$1 [R=permanent,L]
    
    RewriteCond %{HTTP_HOST} ^domain.net$ [OR]
    RewriteCond %{HTTP_HOST} ^domain.net:80$
    RewriteRule ^$ index.php?q=domain.net/ [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{HTTP_HOST} ^domain.net$ [OR]
    RewriteCond %{HTTP_HOST} ^domain.net:80$
    RewriteRule ^(.*)$ index.php?q=domain.net/$1 [L,QSA]
    


    Hope someone can find it usefull. I’m not 100% sure that the code is bullet proof. But I used it for a few weeks or a month, and decided to hack the system tongue
      Wendy Novianto
      [font=Verdana]PT DJAMOER Technology Media
      [font=Verdana]Xituz Media