how can i remove index.php from first page URL ?

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

Postby lavinya » Mon Jan 08, 2007 8:40 am

hello. thanks dcz.

where add this code?

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If ($mark_read == '' && $viewcat == -1  && strpos($uri, "index.$phpEx")) {
         header("Status: 301 Moved Permanently", FALSE, 301);
      header("Location: http://www.example.com/phpBB/");
      exit();
}
// www.phpBB-SEO.com SEO TOOLKIT END
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Advertisement

Postby dcz » Mon Jan 08, 2007 10:24 am

Use it instead of :
Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If ($mark_read == '' && $viewcat == -1  && strpos($uri, "index.$phpEx")) {
   seo_redirect(PHPBB_URL);
}
// www.phpBB-SEO.com SEO TOOLKIT END


as said here.

++
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: 21424
Joined: Fri Apr 28, 2006 9:03 pm

Postby lavinya » Mon Jan 08, 2007 10:48 am

ok thanks. now works. :)
thanks dcz.
User avatar
lavinya
PR1
PR1
 
Posts: 167
Joined: Mon Jul 24, 2006 9:05 am
Location: Turkey

Re: how can i remove index.php from first page URL ?

Postby nasif123 » Fri Apr 29, 2011 12:35 pm

Thanks.. It's working now...
nasif123
 
Posts: 3
Joined: Fri Apr 29, 2011 12:21 pm

Previous

Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 4 guests