Hello. I have question.
How to redirect from example.com/forum.html to example.com/
?
Moderator: Moderators
install wrote:=> By Default, this mod will get rid of index.php for phpBB's index.
You can change this in phpbb_seo/phpbb_seo_class.php if you prefer.
Look for :
'index' => ''
In this line of code :
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => '', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
And replace with :
'index' => 'forum'
or whatever you may prefer.
This is mostly useful if you're running a portal in the folder where phpBB is installed.

// Default : Used as URL when format_url would return nothing or with simple URLs
// can be edited, requires .htaccess update.
$this->seo_static = array( 'forum' => 'forum', 'topic' => 'topic', 'post' => 'post', 'user' => 'member', 'group' => 'group', 'index' => 'forum', 'global_announce' => 'announces', 'leaders' => 'the-team', 'atopic' => 'active-topics', 'utopic' => 'unanswered', 'npost' => 'newposts', 'pagination' => 'page', 'gz_ext' => '.gz' );
// URL suffixes, for the phpBB URLs
// can be edited, requires .htaccess update.
$this->seo_ext = array( 'forum' => '.html', 'topic' => '.html', 'post' => '.html', 'user' => '.html', 'group' => '.html', 'index' => '', 'global_announce' => '/', 'leaders' => '.html', 'atopic' => '.html', 'utopic' => '.html', 'npost' => '.html', 'pagination' => '.html', 'gz_ext' => '');RewriteRule ^forum\.html$ ./index.php [QSA,L,NC]SeO wrote:if you are not using the virtual root option, you just have to set no file (no forum.html) for forum index in phpbb_seo_class.php and the zero duplicate will do the appropriate redirect for you.

script path:/
'index' => 'forum''index' => ''
Users browsing this forum: No registered users and 4 guests