Recent Topics

1 Sep 30, 2014 21:45    

Hello,

I'm running 5.0.9 stable and I've got three blogs,
http://www.traemcmaken.com
http://www.michiganfiddle.com
http://www.borderfiddle.com

I've been using absolute url settings for these blogs but am running into this problem. It may be a simple fix so my apologies if this is overly simple -- I've searched the forums but maybe don't know the correct terms to search.

When I set my blogs michiganfiddle.com and borderfiddle.com to have absolute urls such as "http://www.borderfiddle.com/," if someone just types in "borderfiddle.com" it spits them out to my main blog, traemcmaken.com. If I use "http://borderfiddle.com/" then it doesn't work if someone types in www.borderfiddle.com but spits them to my main blog.
This is an issue because I really should have both of these take them to the appropriate blog, and I've already seen that people are having confusion over this.

Please advise and thank you for your time,
Trae

2 Oct 01, 2014 08:26

Hi @trae,

Maybe you need to decide how you want your visitors locate those sites. I mean, some experts say that having http://www.example.com/ (A) and http://example.com/ (B) is not a good idea for SEO and usability, so you should take one of them as your main address and redirect the other to this one. i.e. If A is your main address, so people (and search engines robots) accessing through B should be automatically redirected to A.

This could be done using the .htaccess file (http://b2evolution.net/man/htaccess-file). Just open it, locate the line RewriteEngine On and paste the following code right after it (according the option you have chosen):

... sorry, I will split this comment in two because this forum doesn't allow to share several URLs

3 Oct 01, 2014 08:28

Add www


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

Remove www


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

Repeat that for each one of your domains.

Note: I haven't tested this in a real environment, but it's a very common practice, so it should work with no problem.

4 Oct 15, 2014 19:00

Thank you very much. This resolved my issue.


Form is loading...