PHPBBMODforGoogle complete solution plan

Source: Internet
Author: User
Author: Trotter Email: trotter@kekerde.net Source: www.gbunix.com reprint please keep the document complete, indicate the source. Preface as content on the Internet increases at an astonishing rate, the importance of search engines is becoming increasingly prominent. Author: Trotter
Email: trotter@kekerde.net
Source: www.gbunix.com

Reprinted please keep the document complete and indicate the source.

Preface

As the content on the Internet increases at an astonishing rate, the importance of search engines is becoming more and more prominent. if a website wants to be better indexed by search engines, in addition to User Friendly design, the design of Search Engine Friendly is also very important. The more pages you enter the search engine, the more likely you will find using different key words. I have to admit that converting dynamic web page link rewriting into static link is the safest and most stable search engine-oriented optimization method. This plan is proposed for URL redirection of the phpBB Forum system.

Solution

URL redirection can be implemented in two methods: URL rewrite and PATH_INFO. For example.

For the reform of the PHPBB Forum, we will distinguish the two skills to distinguish the first level.

1. implement the rewrite technique:

Corrected the phpBB Code:

Open the/uplodes/page_header.php file,

Search code:

//
// Generate logged in/logged out status
//

Previously added:

Ob_start ();
Function replace_for_mod_rewrite (& $ s)
{
$ Urlin =
Array (
''(? ''(? ''(? ''(? ''(? ''(? ''(? ''(? ''(? ''(? ''(? );
$ Urlout = array (
'Viewforum \ 1-\ 2-\ 3.html ',
'Forum \ 1.html ',
'Forum \ 1.html ',
'Ptopic \ 1.html ',
'Ntopic \ 1.html ',
'Ftopic \ 1-\ 2-\ 3-\ 4.html ',
'Ftopic \ 1.html ',
'Ftopic \ 1-\ 2.html ',
'Ftopic \ 1.html ',
'Sutra \ 1.html ',
'Sutra \ 1.html ',
);
$ S = preg_replace ($ urlin, $ urlout, $ s );
Return $ s;
}

Open the/shortdes/page_tail.php file,

Search code:

$ Db-> SQL _close ();

Add after:

$ Contents = ob_get_contents ();
Ob_end_clean ();
Echo replace_for_mod_rewrite ($ contents );
Global $ dbg_starttime;

If your phpBB version is 2.06, open the file des/functions. php,

Search code:

If (! Empty ($ db ))
{
$ Db-> SQL _close ();
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.