548 Posts
joomleb
11 years ago
Topic

Hi, 

I created a SiteA following this guide.

If I input in the URL field (point 6) www.domain.com = when I go to www.domain.com my site is shown, but when I try to go to domain.com is shown the MainSite instead of the created SiteA

vice vers

If I input in the URL field (point 6) domain.com = when I go to domain.com my site is shown, but when I try to go to www.domain.com is shown the MainSite instead of the created SiteA

May be, it is something related to this issue ...for that I yet opened a ticket on tracker without solution at the moment

Many Thanks for help

Get a VIP membership
11 years ago
1
Level 1

Hi Joomleb,

I think there is some confusion here. A domain name is for example www.mydomain.com but mydomain.com is another domain name such as w.mydomain.com or ww.mydomain.com .

You must have for your website only one main domain (www.mydomain.com) and all other must redirect to the main domain such as mydomain.com must redirect to www.mydomain.com. If not you have duplicated content.

Regards.

548 Posts
joomleb
11 years ago
0
Level 2

Hi Seb,

many thanks for explanation. 

Well, when I setup a site filling the form (point 6 of the guide), what is better I input into the URL field ? 

www.domain.com or domain.com ...with or without www ?!?

11 years ago
1
Level 1

Hi

to achieve this redirect it can be done in the .htaccess file if using apache and have access.

there are plenty of examples if do a google search on how to achieve.

cheers

548 Posts
joomleb
11 years ago
0
Level 2

Hi fredee, 

Many thanks for suggestion. I decided to use domain.com as default and I have altered my .htaccess to redirect www.domain.com to domain.com, tested the redirect and it is working. Below is the changes I made to .htaccess:

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


I think this can be useful added into the Seblod Manuals...


Get a Book for SEBLOD