| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 121
|
Posted: Sun Sep 02, 2007 5:35 pm Post subject: Issue with forum URLs in latest mod-rewrite (0.4.0) |
|
|
My live forum is still on RC4, so I'm installing all the latest SEO mods on a clean RC5 installation in a test folder before converting the live forum to RC5.
It's all working well, except that forum URLs have changed from http://www.mydomain.com/test/test-forum-f2/ to http://www.mydomain.com/test/test-forum-f2.html
I can't see any settings in the SEO control panel to change back to the old style. I don't really care which of these formats is used - but the problem is that if I enter the old style of URL, I get a 404 error. This would be a shame as I have backlinks to the live forum in that style.
Is there a line I can enter in .htaccess to change from /test-forum-f2/ style to /test-forum-f2.html style? |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sun Sep 02, 2007 6:30 pm Post subject: Re: Issue with forum URLs in latest mod-rewrite (0.4.0) |
|
|
It's just that we've changed the default value for the suffixes in phpbb_seo_class.php :
| Code: | | $this->seo_ext = array( 'forum' => '.html', |
You can replace it with :
| Code: | | $this->seo_ext = array( 'forum' => '/', |
And generate a new .htaccess.
We did this because the / suffixes implies the use of base href, and really is necessary when using virtual folder. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 121
|
Posted: Sun Sep 02, 2007 7:26 pm Post subject: Re: Issue with forum URLs in latest mod-rewrite (0.4.0) |
|
|
Thanks, I've just done that but now viewing forums doesn't display properly, see this link.
I've tried clearing the cache but I still get the same problem.
I know it'll be something really simple, but can't see what I've done wrong. |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 4006
|
Posted: Sun Sep 02, 2007 7:40 pm Post subject: Re: Issue with forum URLs in latest mod-rewrite (0.4.0) |
|
|
just a small bug, in phpbb_seo_class.php find :
| Code: | | ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root']) |
replace with :
| Code: | | ($this->seo_opt['virtual_folder'] || $this->seo_opt['virtual_root'] || ($this->seo_ext['forum'] == '/' ) ) |
Should do it. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
arch stanton PR1

Joined: 04 Oct 2006 Posts: 121
|
Posted: Sun Sep 02, 2007 7:52 pm Post subject: Re: Issue with forum URLs in latest mod-rewrite (0.4.0) |
|
|
That works. Thanks.  |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |