Hello,
I have a problem.
I have multiple domains under one account.
maindomain.nl -> Is main account ( really the .nl extension...... )
addondomain.com -> addon domain ( really the .com extension...)
anotheraddondomain.com -> addon domain 2 ( also .com extension... )
The structure of my account would looks like this:
/public_html/ -> maindomain
/public_html/addon_domain/ -> addon domain
/public_html/anotheraddon_domain/ -> addon domain 2
This is my .htaccess
RewriteEngine On
#Rule-0
RewriteCond %{HTTP_HOST} ^addondomain.com$
RewriteCond %{REQUEST_URI} !^/addon_domain/
RewriteRule (.*) /addon_domain/$1
#Rule-1
RewriteCond %{HTTP_HOST} ^anotheraddondomain.com$
RewriteCond %{REQUEST_URI} !^/anotheraddon_domain/
RewriteRule (.*) /anotheraddon_domain/$1
When some is clicking a link on addondomain.com or the other domains to a subdir of the domain the url in the browser window is displayed correctly.
( link is like : http://www.addondomain.com/link/index.php )
When I / someone is typing the url and hits the enter button the url in the browser is displayed like :
http://www.maindomain.nl/addon_domain/link/index.php
is there a way so when someone else type addondomain.com/link/index.php ( or other files ) into the address bar it'll stay same like that without anyone seeing that its a subdirectory of a maindomain?