Home › ClipBucket › Redirect from without www. to with www
Redirect from without www. to with www
I have been watching forums and found many users are trying to use website with www, so here is a little guide for how to add www. to your website.
Fist open ./includes/common.php
and find this code
$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
if(count($matches)>0)
{
$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
}
replace with
/*$wwwcheck = preg_match('/:\/\/www\./',$baseurl,$matches);
if(count($matches)>0)
{
$baseurl = preg_replace('/:\/\/www\./','://',$baseurl);
}*/
Now clipbucket wont remove www from your baseurl.
you may have to add www. from database, if you are using phpMyAdmin , simply goto cb_configs table and edit row with name ‘baseurl’ and add www. accordingly

