rowanp Posted July 1, 2006 Posted July 1, 2006 Hi, Is there a mod for .htaccess such that all subdomains of a site are automatically redirected to another site with the same subdomain? For example if someone visits http://subdomain.****/ I would like them to be automatically redirected to http://subdomain.otherdomain.com/page.html. Thanks. Quote
TCH-Bruce Posted July 1, 2006 Posted July 1, 2006 Not sure if this will do it. A novice at mod_rewrite. >RewriteEngine on RewriteCond %{REQUEST_URI} !-U RewriteRule ^(.+) http://sub.otherdomain.com/$1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.