isdoo Posted February 17, 2008 Share Posted February 17, 2008 Hi, Is it possible to add extra domain names to a licence? Whilst the path stays the same, is it possible to add extra domains to the licence? We have a few extra domains mapped to our main domain (miss-spellings etc.) As a result.... domain.com/clients works but doman.com/clients domain.co.uk/clients domin.com/clients all fail with a licence error, due to only domain.com being in the licence. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 17, 2008 Share Posted February 17, 2008 You could always do a mod rewrite in an .htaccess file (assuming LINUX) of the other domain names to channge to the correct one automatically. Example: RewriteEngine onRewriteCond %{HTTP_HOST} ^(.+\.)*domain2\.com$ [NC] RewriteRule /?(.*) http://www.domain1.com/$1 [L,R] #takes the secondary domain and any URIs and converts to the main domain #so "www.any_domain.com/stuff" becomes "www.domain1.com/stuff" #add one of the above for every additional domain pointed to the licensed one RewriteCond %{HTTP_HOST} ^(.+\.)*domain1\.com$ [NC] RewriteRule /?(.*) http://www.domain1.com/$1 [L,R] #takes requests for "domain1.com" without "www" and adds "www" into the request #so "domain1.com" becomes "www.domain1.com", and adds any requested page to the end 0 Quote Link to comment Share on other sites More sharing options...
RPS Posted February 17, 2008 Share Posted February 17, 2008 On an SEO note... If "domain.co.uk/clients" is a mirror of "domain.com/clients" then you may be penalized by duplicate content rules in search engines. It's best to use some sort of redirect like the one bear posted above. 0 Quote Link to comment Share on other sites More sharing options...
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.