Topic: [extension release] Single Host Redirection

Redirects the user if he/she doesn't access over the standard host, e.g.
Forum installed at: http://example.net/punbb
User requested: http://www.example.net/punbb

As a nice side effect, this extension removes a lot of duplicate content, if search engines crawl your domain twice (with www. and without)

Download: http://www.punres.org/files.php?pid=496

2

Re: [extension release] Single Host Redirection

wow, I had problem with Google.
This is the solution smile

PunBB, Simplicity has been easier than before
Smart is Simple. Fast is Smart. Think Fast, You'll be Smart..

regards,
PunBB & SMF Fans

Re: [extension release] Single Host Redirection

man ... i have a huge problem ... http://supermag.exofire.net

after i installed this extension ... the every page redirect ot HTTP.com
like
http://www.http.com//supermag.exofire.net/

is there any other way to remove that extension

MyFootballCafe.com  is Now Online!

Re: [extension release] Single Host Redirection

You can try to delete it manually in the database smile

Re: [extension release] Single Host Redirection

include/essentials.php, PUN_DISABLE_HOOKS.

6 (edited by damaxxed 2008-03-18 08:46)

Re: [extension release] Single Host Redirection

Hmm.. strange, SuperMAG. I would like to help you and fix the problem. The only thing you have to do is tell me your $base_url (you find it in config.php):

$base_url = 'http://***';

Re: [extension release] Single Host Redirection

damaxxed wrote:

Hmm.. strange, SuperMAG. I would like to help you and fix the problem. The only thing you have to do is tell me your $base_url (you find it in config.php):

$base_url = 'http://***';

my base url is

base_url = 'http://supermag.exofire.net/';

Smartys wrote:

include/essentials.php, PUN_DISABLE_HOOKS.

thanks i will do that untill damaxxed get a solution

MyFootballCafe.com  is Now Online!

Re: [extension release] Single Host Redirection

You're not supposed to have a trailing slash in your base URL.

Re: [extension release] Single Host Redirection

realy

MyFootballCafe.com  is Now Online!

Re: [extension release] Single Host Redirection

oh sorry ... i ddint have it at the bigginning ... i copied the wrong code its like this

base_url = 'http://supermag.exofire.net';

MyFootballCafe.com  is Now Online!

Re: [extension release] Single Host Redirection

Ok, I think I fixed the bug.. Thanks for your cooperation, please try v0.5

http://www.punres.org/files.php?pid=496