Tutorial

How to change your Dolphin site so it will use the www prefix or only http.

Do you want to use the www prefix (http://www.yoursite.com) or the non-www-version (http://yoursite.com) in your browsers address bar?


Note:
The following was written for Dolphin 6.1x. I haven't had a chance to fully examine the new version 7 beta thoroughly enough to say that it will be exactly the same. Most likely it will either be the same or nearly the same as what is written here.



When you installed Dolphin you were prompted for your "Site URL"

It is usually automatically filled out for you based on the way you entered the install directory.

For example if you entered:
http://yoursite.com or http://yoursite.com/install

Or
http://www.yoursite.com or http://www.yoursite.com/install


Notice one example uses the www prefix and the other does not.

So whichever one you entered into the address bar during installation is the one that will be automatically selected for you and the way your site will work from then on.

If you don't remember this or you are not sure which format your site is using you can simply try both instances in your address bar.

If you enter:
http://www.yoursite.com and it redirects to http://yoursite.com then you know you originally set up your site without the www prefix during install.

If you enter:
http://yoursite.com and it redirects to http://www.yoursite.com then you know you originally set up your site with the www prefix during install.


Some people prefer the www prefix, some do not, others don't care.

If you would like to change your site to use the other format you can simply open this file:
/inc/header.inc.php

And find near the top:
$site['url']               = "http://yoursite.com/";
$admin_dir                 = "admin";
$site['url_admin']         = "{$site['url']}$admin_dir/";
$site['url_aff']           = "{$site['url']}aff/";
$site['profileImage']      = "{$site['url']}media/images/profile/";
$site['profileBackground'] = "{$site['url']}media/images/profile_bg/";


Change to:
$site['url']               = "http://www.yoursite.com/";
$admin_dir                 = "admin";
$site['url_admin']         = "{$site['url']}$admin_dir/";
$site['url_aff']           = "{$site['url']}aff/";
$site['profileImage']      = "{$site['url']}media/images/profile/";
$site['profileBackground'] = "{$site['url']}media/images/profile_bg/";

Save the changes.

The example given above changes a site that does not use the www prefix to use it.


If you currently have the www prefix and do not want it, then you would make the following changes:

And find near the top:
$site['url']               = "http://www.yoursite.com/";
$admin_dir                 = "admin";
$site['url_admin']         = "{$site['url']}$admin_dir/";
$site['url_aff']           = "{$site['url']}aff/";
$site['profileImage']      = "{$site['url']}media/images/profile/";
$site['profileBackground'] = "{$site['url']}media/images/profile_bg/";


Change to:
$site['url']               = "http://yoursite.com/";
$admin_dir                 = "admin";
$site['url_admin']         = "{$site['url']}$admin_dir/";
$site['url_aff']           = "{$site['url']}aff/";
$site['profileImage']      = "{$site['url']}media/images/profile/";
$site['profileBackground'] = "{$site['url']}media/images/profile_bg/";

Save the changes.


If it does not work for you, or if you have problems just change it back.


You don't want to keep changing this from one to the other frequently. You should decide which you prefer most, make the change if necessary and leave it alone from, then on. We all have heard the phrase "Set it and forget it".

Then you should stick to this format when posting any links to your site. If you decide to use the www prefix (http://www.yoursite.com) then you need to use this format when advertising, posting links, forums, blogs, etc. around the internet. Traffic will still come to your site if you forget and use the other format, but it's best to try and stick to the same format as much as possible.

If you are using http://www.yoursite.com do not get lazy when posting a link somewhere like http://yoursite.com be sure to post the way your site is configured.

Google regards http://yoursite.com and http://www.yoursite.com as two different pages.

So if you had posted a link to your site at 100 different places and you posted http://www.yoursite.com you can potentially get some link credit for all 100 links if certain conditions are met and followed.

But if you posted your link to 100 different places, 50 of them you posted http://www.yoursite.com and the other 50 you posted http://yoursite.com...you would get 1/2 link credit to one and 1/2 link credit to the other, which your site doesn't even use. So basically you would be throwing away 1/2 of your time posting the wrong format for your site, and 1/2 of the potential link credit you could have got from google. Again, visitors would still come to your site, but you would benefit the most in Google's eyes if you use the same format.

At any rate you should decide early which format you prefer to use and stick to it. Better to change and stick to it early in the game, then to change later and loose a lot of work.


*This will work with most hosts, but there are some rare occasions or setups that use one or the other no matter what. It's just the way the host is setup and configured, but this is fairly rare. Generally you have the option of either www or non-www.


**One of the drawbacks to a non-www-webpage is cookies maybe set across the whole domain including subdomains, which can cause issues with things like remembering your member name or login for example.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend
Sponsored Links