Hey guys, is there anyway to set it in .htaccess like this:
http://childcare.domain.com/2/
to
http://domain.com/index.php?subdomain=childcare&page_id=2
Not to redirect, but so it works passively.
Right now I have this .htaccess which does this:
http://domain.com/childcare/?page_id=2
to
http://domain.com/index.php?subdomain=childcare&page_id=2
The domain childcare doesn't actually exist, index.php just fakes it.
Code:
Options +FollowSymlinks
DirectoryIndex index.html index.htm index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/*/wp-admin*
RewriteCond %{REQUEST_URI} !/*/wp-login.php
RewriteRule . /index.php [L]
RewriteRule ^(.*)/wp-admin/(.*)$ /wp-admin/index.php?subdomain=$1 [R,L]
RewriteRule ^(.*)/wp-login.php$ /wp-login.php?subdomain=$1 [R,L]
</IfModule>
Thanks in advance if anyone can figure it out