Hey guys
I currently have a setup so that visitors to my domain get forwarded to the a /wp/ folder and the rest of the url is cloaked. I would like to duplicate that for another two subdomains that would serve as domain roots. My current setup on my server (for the one domain not under a subfolder) is....
My root directory had a folders and also had the folder /wp/
If you went to just my domain it would redirect you to /wp/ and then cloak the /wp/ from the address bar, but if you went to mydomain.com/folder/ it would take you to that folder
It also had it so that if you went to any page within /wp/ it would keep the cloak of mydomain.com/pagewithinwp/
The htaccess looked like this.
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/projects%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_URI} ^(/[^/]+)
RewriteCond %{DOCUMENT_ROOT}/projects%1/ -d
RewriteRule ^(.*)$ /projects/$1 [QSA,L]
RewriteCond %{DOCUMENT_ROOT}/wp%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}/wp%{REQUEST_URI} -d
RewriteRule !^wp(/.*)?$ /wp%{REQUEST_URI} [QSA,L]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^wp/index.php$ /wp/index.php [L]
Now in my new site I have two folders in my root, one for one domain and another for the other domain. The folders are th3n33ms and kingnima.
I would like to do the same kind of htaccess but have it so if someone goes to kingnima.com it will redirect them to the kingnima/wp folder and also cloak the actual domain from the address bar and then do the same to the th3n33ms.net domain.
Basically I want the same setup as before except the redirection would go down two levels (directory wise) instead of two.
Both th3n33ms.net and kingnima.com go to the same page right now so either of them are interchangeable for the output directory as long as it is cloaked.
So http://th3n33ms.net --> http://th3n33ms.net/th3n33ms/wp
http://th3n33ms.net/folder --> http://th3n33ms.net/th3n33ms/folder
http://kingnima.com --> http://th3n33ms.net/kingnima/wp
http://kingnima.com/folder --> http://th3n33ms.net/kingnima/folder
Anyways, if you could help me with this it would be amazing I'd find some way of repaying you. If you can't if you could just tell me where I could post this on the forum that would be great too.
Thanks a lot
Nima