ClipBucket, ClipBucket v2, How-To's

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

1 Star2 Stars3 Stars4 Stars5 Stars (22 votes, average: 2.27 out of 5)
Loading...