Jump to content

Adding extra domains to a licence?


isdoo

Recommended Posts

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.

Link to comment
Share on other sites

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 on

RewriteCond %{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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated