How to change forum.html to domain-name.html

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

Moderator: Moderators

How to change forum.html to domain-name.html

Postby Radamante » Sat Jan 15, 2011 8:09 pm

Hi, i've a problem, i want to change my forum index file name from forum.html to la-quinta-casa.html. Can i do this?

P.S. Sorry for my poor english ;)
Radamante
 
Posts: 1
Joined: Sat Jan 15, 2011 8:04 pm

Advertisement

Re: How to change forum.html to domain-name.html

Postby SeO » Tue Jan 18, 2011 10:22 am

You can do this by reading the install file :
install.xml wrote:=> By Default, this mod will get rid of index.php for phpBB's index.

You can change this in phpbb_seo/includes/setup_phpbb_seo.php if you prefer.
To do this, you can for example add :

Code: Select all
      $this->seo_static['index'] = 'forum';


before :

Code: Select all
      // Let's make sure that settings are consistent
      $this->check_config();



This is mostly useful if you're running a portal in the folder where phpBB is installed.

=> The first setting to do is to select which static part to use in your URLs.

To do so, you can override default values in phpbb_seo/includes/setup_phpbb_seo.php, still before :

Code: Select all
      // Let's make sure that settings are consistent
      $this->check_config();


EXAMPLES :
__________

// => the-team :
Code: Select all
      $this->seo_static['leaders'] = 'my-team'; // instead of the default "the-team"


// => announces :
Code: Select all
      $this->seo_static['global_announce'] = 'announcements'; // instead of the default "announces"


// => Active topics :
Code: Select all
      $this->seo_static['atopic'] = 'important-topics'; // instead of the default "active-topics"


// => Unaswered :
Code: Select all
      $this->seo_static['utopic'] = 'not-answered'; // instead of the default "unanswered"


// => Newposts :
Code: Select all
      $this->seo_static['npost'] = 'new-messages'; // instead of the default "newposts"


=> As well as for (and the same way) :
forum ($this->seo_static['forum']), topic ($this->seo_static['topic']), post ($this->seo_static['post']), member ($this->seo_static['member']), groups ($this->seo_static['group']), attachments virtual directory ($this->seo_static['file_index'], read the comments in the file for more attachments customizing) and virtual folder pagination ($this->seo_static['page'])
SeO
Admin
Admin
 
Posts: 6334
Joined: Wed Mar 15, 2006 9:41 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Bing [Bot] and 8 guests