Forum Moderators: phranque
Options +FollowSymLinks
RewriteEngine on
RewriteOptions inherit
RewriteBase /
RewriteCond %{HTTP_HOST} ^test.example1.com$ [NC]
RewriteRule ^(.*)$ http://www.example1.com/redir.php [L]
RewriteCond %{HTTP_HOST} ^example1.com [NC]
RewriteRule ^(.*)$ http://www.example1.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^test.example1.com$ [NC]
RewriteRule ^(.*)$ https://www.google.com/a/monacosuitesboracay.com/ServiceLogin?service=mail&passive=true&rm=false&continue=http://mail.google.com/a/monacosuitesboracay.com/<mpl=default<mplcache=2 [L]
RewriteRule ^(.*)$ redir.php [L] RewriteRule ^(.*)$ /redir.php [L] RewriteRule ^(.*)$ http://www.example.com/redir.php [L]
Typing test.example1.com to the browser's address bar has no effect. White screen, no redirection, no nothing. If some page exists there, i know not.
The htaccess file is located to example1.com root directory.
I have no physical access to test subdirectory, although i know it exists - ping to that url shows me the IP of example1.com