Implementation of advanced Pseudo-static of php168 classified information Multi-city edition

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

A few days ago to share some of the past few years and do second-hand classified information website's mentality process, received a good response, many webmaster friends add me qq or send mail, ask Mymps and php168 classification system related issues. For your convenience, feature this article, introduce the php168 domain name and advanced pseudo static implementation methods (similar to the 58 city and net).

In fact, the official in the background of the "pseudo static settings" inside a large section of the description and rules, logically said that it is not difficult to achieve. But the problem is there, the official note is wrong, step-by-step implementation will be wrong, so for most people do not like to study their friends or novice webmaster, immediately unprepared, do not know how to do. Below we follow the official instructions to explain the steps.

Official description of the first: to use pseudo static, you need to modify the Apache or IIS configuration file, if it is a single city version to add "single city version of the pseudo static rule", if it is the multi-city version to add "multi-city version of the pseudo-static rule"

My note: This is certainly to be done, but not now, is left behind to do, and cannot be used by the rules he provides.

Official description of the second: Single City edition note: To use advanced pseudo static, you must first confirm that the category column directory name first letter is uppercase. Otherwise there will be an error and the Web page cannot be accessed.

My explanation: This article discusses the multi-city edition, also did not use the single City edition test. But I think, since the use of this system, very few people will use the single city version of it, so skip.

Official description of the third: multi-city Edition Note: If you want to achieve the city domain name, it must be in the domain name manager to set a pan-domain name *.2pcw.cn to the current server's IP, general settings will not take effect immediately, to wait for some time.

My note: This must have. The recommendation is to use the Dnspod, set immediately after the entry into force.

Official note fourth: Before the pseudo static, please click on the Head menu "catalog directory batch generation standard directory Name", a one-time all categories to generate the standard directory name. This does not create a directory, it simply updates the database.

My explanation: The official move is to prevent the database from appearing without this column directory name, pseudo static address is empty error. But don't do this, you will replace all the categories you have painstakingly set up. Because each column we will manually modify the name, English directory name, title, keyword, description, etc., has updated the database, will not be wrong.

Official note Fifth: If the multi-city version, enabling pseudo static, you will also click on the Head menu "City Batch Generation catalog file", a one-time all cities to generate catalog files. Each city generates a separate directory.

My note: This step is necessary. If you add a city, you also build it.

The official Apache rules, which are not normally used in the test, are as follows:


Rewriterule ^/([^\/]+)/F ([^\/]+) \. ([a-za-z0-9]+) $/bencandy\.php\? Fid=$1&id=$2
Rewriterule ^/([^\/]+)/$/list\.php\? Fid=$1
Rewriterule ^/([^\/]+)/([^\/]+)/$/list\.php\? Fid=$2&zone_street=$1
Rewriterule ^ (. *)/(List|bencandy)-([^\/]+) \. ([a-za-z0-9]+) $ $1/$2\.php\?stringid=$3

The following rules for the normal use of the modified test are as follows (demo address http://www.2pcw.cn/):

rewriterule ^ ([-_0-9a-za-z]+)/F ([-_0-9a-za-z]+) \.html$/bencandy.php? Fid=$1&id=$2


rewriterule ^ ([-_0-9a-za-z]+)/$/list.php? Fid=$1


rewriterule ^ ([-_0-9a-za-z]+)/page (0-9]+)/$/list.php? Fid=$1&page=$2


Rewriterule ^ ([-_0-9a-za-z]+)/([-_0-9a-za-z]+)/$/list.php? Fid=$1&zone_street=$2


rewriterule ^ ([-_0-9a-za-z]+)/([-_0-9a-za-z]+)/page [0-9]+]/$/list.php? Fid=$1&zone_street=$2&page=$3

Need to explain, the default paging is this:/diannao/,/diannao-page-1/,/diannao-page-2/, so bad, not conducive to column SEO, need to be modified to:/diannao/,/diannao/page1/,/ diannao/page2/, pseudo static rules have been listed above, but also need to construct the paging address in the program.

Some may say, now long city classification information still has the future, who can compete 58 and fair. I think it is, all-inclusive, small and fine can always do one, focus on a small classification and then subdivided, or can earn points of traffic, second-hand computer network http://www.2pcw.cn/is to use the multi-city version of the establishment. Finally, I wish you all a good 51 holiday.

Related Article

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.