.htaccess
<IfModule mod_rewrite.c> Options +FollowSymlinks RewriteEngine On RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^\?$ / [R=301,L] RewriteRule ^procate-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1.html [NC,L] RewriteRule ^procate-([0-9]+)-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1/child_id/$2.html [NC,L] RewriteRule ^product_cate-([0-9]+)\.html$ /index.php?s=/product/index/cate_id/$1.html [NC,L] RewriteRule ^product-([0-9]+)\.html$ /index.php?s=/product/detail/id/$1.html [NC,L] RewriteRule ^zyry-([0-9]+)\.html$ /index.php?s=/zyry/detail/id/$1.html [NC,L] RewriteRule ^zyry\.html$ /index.php?s=/zyry/index.html [NC,L] RewriteRule ^cont-([0-9]+)\.html$ /index.php?s=/article/sysdetail/id/$1.html [NC,L] RewriteRule ^map\.html$ /index.php?s=/article/map.html [NC,L] RewriteRule ^hangye-([0-9]+)\.html$ /index.php?s=/hangye/detail/id/$1.html [NC,L] RewriteRule ^appcate-([0-9]+)\.html$ /index.php?s=/shangpin/index/cate_id/$1.html [NC,L] RewriteRule ^app-([0-9]+)\.html$ /index.php?s=/shangpin/detail/id/$1.html [NC,L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L] </IfModule>
成功的秘诀,在永不改变既定的目的~