Home  ›  ClipBucket  ›  Redirect from without www. to with www

Tags: , , , ,

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



Comments are closed.

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading ... Loading ...
Help us improve the wiki Send Your Comments