1

I am trying to mask https://mydomain.com/free to www.myotherdomain.com so that when www.myotherdomain.com or myotherdomain.com is entered it loads the page at mydomain.com but shows myotherdomain.com in the address bar as well as keeps a ssl connection through mydomain.com without having to use an iframe, is this possible, I am fairly new to working with .htaccess and mod_rewrite my .htaccess code is as follows

# BEGIN WordPress

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{HTTP_HOST} !^javitaonlinecafe\.com$ [NC]
RewriteRule ^(.*)$ http://freejavitacoffee.com [R=301,L]

# END WordPress
Cloutedd
  • 11
  • 1
  • is entered it loads the page at mydomain.com/free * forgot to specify the subpage – Cloutedd Oct 25 '12 at 00:47
  • myotherdomain is a add on domain to my 1and1 hosting business server – Cloutedd Oct 25 '12 at 01:09
  • Did you read this http://stackoverflow.com/questions/6042828/htaccess-to-mask-url-and-redirect-domain-name-to-subdirectory? – Pedro Oct 25 '12 at 10:27
  • Here's another nice article http://www.htmlremix.com/css/permanent-url-masking-for-mirroring-website-using-php-and-htaccess – Pedro Oct 25 '12 at 10:29

0 Answers0