Board3 Portal and phpBB SEO Ultimate SEO URLs - Board3 Portal
Board3 Portal and phpBB SEO Ultimate SEO URLs
Hey!
I use both modifications (Board3 Portal, and phpBB SEO Ultimate SEO URLs 0.7.0 by phpbb-seo.com) and have a really stubborn bug.
If I go to my site I get a portal - that's OK, but if I click "Board index" from the menu I am redirected to the main URL of main domain (not to index.php, to for example domain.com).
If I go manually to domain.com/index.php I am still redirected to the portal page.
I've disabled a portal and I lost access to my homepage (ACP is still working). I thought that it may be sessions problem. Board3 Portal commands to replace one line in incudes/sessions.php, so I've backed it to the default phpBB3 line. And it works! I can access to my site, but after enabling portal problem back.
Could anyone help me? I really need both modifications.
Thanks for reading,
Trace
PS.
If you need a URL to my website, write, I get it for you by PM, if you accept.
I use both modifications (Board3 Portal, and phpBB SEO Ultimate SEO URLs 0.7.0 by phpbb-seo.com) and have a really stubborn bug.
If I go to my site I get a portal - that's OK, but if I click "Board index" from the menu I am redirected to the main URL of main domain (not to index.php, to for example domain.com).
If I go manually to domain.com/index.php I am still redirected to the portal page.
I've disabled a portal and I lost access to my homepage (ACP is still working). I thought that it may be sessions problem. Board3 Portal commands to replace one line in incudes/sessions.php, so I've backed it to the default phpBB3 line. And it works! I can access to my site, but after enabling portal problem back.
Could anyone help me? I really need both modifications.
Thanks for reading,
Trace
PS.
If you need a URL to my website, write, I get it for you by PM, if you accept.
If you see mistakes in my posts, please PM me. I want improve my English .
-
- Registered User
- Posts: 55
- Joined: Tue Aug 14, 2012 10:03 am
Re: Board3 Portal and phpBB SEO Ultimate SEO URLs
Hmm... Problem is solved if I remove DirectoryIndex from my .htaccess (phpBB SEO needs also editing in this file).
But then the default page is my forum not a portal.
Someone solved or can solve this problem?
Thanks,
Trace
But then the default page is my forum not a portal.
Someone solved or can solve this problem?
Thanks,
Trace
If you see mistakes in my posts, please PM me. I want improve my English .
-
- Registered User
- Posts: 55
- Joined: Tue Aug 14, 2012 10:03 am
Re: Board3 Portal and phpBB SEO Ultimate SEO URLs
After some complications I've finally solved it. Partially... I don't like this "fix". I am not sure, but I can have some problems in the future.
How I have solved it?
In .htacces (after generating it with phpBB SEO) I found:
and uncommented it:
Now to go to the forum page I use forum.html link:
http://mywebsite.com/forum.html - is my forum page (index.php per default).
How I have solved it?
In .htacces (after generating it with phpBB SEO) I found:
Code: Select all
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
and uncommented it:
Code: Select all
RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
Now to go to the forum page I use forum.html link:
http://mywebsite.com/forum.html - is my forum page (index.php per default).
If you see mistakes in my posts, please PM me. I want improve my English .
-
- Registered User
- Posts: 55
- Joined: Tue Aug 14, 2012 10:03 am
Re: Board3 Portal and phpBB SEO Ultimate SEO URLs
I'm using phpBB3 SEO Premod 3.0.11 and Board3 portal 2.0.1. To get them to work together I had to have "Activate the Zero Duplicate" set to no and edit the phpbb_seo_class.php file in phpbb_seo folder. Find line after add
Code: Select all
var $seo_stop_files = array('posting' => 1, 'faq' => 1, 'ucp' => 1, 'swatch' => 1, 'mcp' => 1, 'style' => 1, 'cron' => 1);
Code: Select all
'cron' => 1
Code: Select all
, 'index' => 1, 'portal' => 1
-
- Registered User
- Posts: 2
- Joined: Thu Aug 15, 2013 9:54 pm
Re: Board3 Portal and phpBB SEO Ultimate SEO URLs
The above method leaves the session id in the portal.php and index.php urls. The better method I found was in phpbb_seo_class.php linezombieslist.com wrote:I'm using phpBB3 SEO Premod 3.0.11 and Board3 portal 2.0.1. To get them to work together I had to have "Activate the Zero Duplicate" set to no and edit the phpbb_seo_class.php file in phpbb_seo folder. Find lineafterCode: Select all
var $seo_stop_files = array('posting' => 1, 'faq' => 1, 'ucp' => 1, 'swatch' => 1, 'mcp' => 1, 'style' => 1, 'cron' => 1);
addCode: Select all
'cron' => 1
Code: Select all
, 'index' => 1, 'portal' => 1
Code: Select all
var $seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => ''
Code: Select all
'index' => ''
Code: Select all
'index' => '.php', 'portal' => '.php'
Code: Select all
'index' => '.html', 'portal' => '.html'
Code: Select all
RewriteRule ^index\.html$ /index.php [QSA,L,NC]
RewriteRule ^portal\.html$ /portal.php [QSA,L,NC
Code: Select all
var $seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => ''
Code: Select all
'index' => ''
Code: Select all
'index' => 'index', 'portal' => 'portal'
Code: Select all
$this->rewrite_method[$phpbb_root_path] = array_merge(
array(
'viewtopic' => 'viewtopic',
'viewforum' => 'viewforum',
'index' => 'index',
Code: Select all
'index' => 'index',
Code: Select all
'portal' => 'portal',
Code: Select all
/**
* URL rewritting for index.php
* @access private
*/
function index() {
$this->path = $this->seo_path['phpbb_urlR'];
if ($this->filter_url($this->seo_stop_vars)) {
$this->url = $this->seo_static['index'] . $this->seo_ext['index'];
return;
}
$this->path = $this->seo_path['phpbb_url'];
return;
}
Code: Select all
/**
* URL rewritting for portal.php
* @access private
*/
function portal() {
$this->path = $this->seo_path['phpbb_urlR'];
if ($this->filter_url($this->seo_stop_vars)) {
$this->url = $this->seo_static['portal'] . $this->seo_ext['portal'];
return;
}
$this->path = $this->seo_path['phpbb_url'];
return;
}
-
- Registered User
- Posts: 2
- Joined: Thu Aug 15, 2013 9:54 pm