Monday, 30 September 2013

Main Domain is SSL and need to add multiple non-SSL domains to subfolders, .htaccess help needed

Main Domain is SSL and need to add multiple non-SSL domains to subfolders,
.htaccess help needed

My main domain is red dot com it comes up with ssl as https www dot red
dot com I need to add multiple domains to the subfolders. For instance red
dot co dot uk would point to folder /var/www/html/uk or red dot tv would
point to folder /var/www/html/tv and so on.
My dns servers are pointing right, and I added virtual servers for each
domain but nothing worked so far because the .htaccess is not configured
properly, can someone give me an idea how to configure the virtual server
and .htaccess?
I also wanted to mention that I have 2 seperate ip addresses both pointing
to main domain
my existing .htaccess file looks like this
# BEGIN WordPress
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.red.com/$1 [R=301,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
This is my config file http://pastebin.com/QWF5a4r7
and this is ssl config file http://pastebin.com/bZpP153d

No comments:

Post a Comment