Bug found - rewrite links with 'www' added causes big issue

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

Bug found - rewrite links with 'www' added causes big issue

Postby tension22 » Thu Aug 06, 2009 9:19 pm

Hi,
My forum -www.dubsteplife.com/forum/
The problem, i have decided to force the www here

Code: Select all
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
RewriteCond %{HTTP_HOST} !^www.dubsteplife\.com$ [NC]
RewriteRule ^(.*)$ http://www.dubsteplife.com/forum/$1 [QSA,L,R=301]


The problem is, the links are still rewritten as dubsteplife.com/forum/blah-blah-f9.html
And then the forwarding happend and the link is displayed in the browser correctly

This is fine, unless your trying to generate a site map! which I am. The generators read these links as a differnt domain. Obviously a bit bug for SEO
How do you re-wite all links with www added correctly? You can see this by hovering over a link with your mouse and looking bottom right.

Thanks
Ollie
tension22
 
Posts: 2
Joined: Thu Jul 30, 2009 12:51 am

Advertisement

Re: Bug found - rewrite links with 'www' added causes big issue

Postby HB » Fri Aug 07, 2009 3:05 am

Did you update the server name in phpBB's config table?
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1567
Joined: Mon Oct 16, 2006 2:25 am

Re: Bug found - rewrite links with 'www' added causes big issue

Postby dcz » Mon Aug 10, 2009 12:22 pm

Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21429
Joined: Fri Apr 28, 2006 9:03 pm

Re: Bug found - rewrite links with 'www' added causes big issue

Postby wolkenkrieger » Mon Aug 10, 2009 10:46 pm

I've defined a .htaccess rewrite condition to solve a possible double content "with-www/without-www"-problem:

Code: Select all
RewriteCond %{HTTP_HOST} !^www\.bulldogboard\.eu$ [NC]
RewriteRule ^(.*)$ http://www.bulldogboard.eu/$1 [QSA,L,R=301]
wolkenkrieger
PR0
PR0
 
Posts: 77
Joined: Sat Nov 03, 2007 4:49 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 8 guests