The website pseudo-static method will be learned

更新时间:2019-09-26 16:37:55点击:21360 Marketing Tools, Marketing Artifacts

Pseudo-static methods of websites can be learned as soon as they are learned

Copy the source code into notepad, then save it as htaccess. TXT file, upload it to the root directory of the website. The last step is to rename the file and change the htaccess. TXT file to. htaccess file name. After the modification, the file automatically hides and takes effect. (If you don't understand, please respond to any request.)

http://www.taimala.com/news.php?lang=1
http://www.taimala.com/news.php?cid=20&lang=1
http://www.taimala.com/news.php?cid=20

http://www.taimala.com/newsshow.php?cid=40&id=149&lang=1
http://www.taimala.com/newsshow.php?cid=20&id=94

http://www.taimala.com/news.php?lang=1&page=7
http://www.taimala.com/news.php?page=6

http://www.taimala.com/case.php?lang=1
http://www.taimala.com/case.php?cid=16&lang=1
http://www.taimala.com/show.php?cid=16&id=73&lang=1
http://www.taimala.com/case.php?lang=1&page=3


http://www.taimala.com/malatang.php?lang=1
http://www.taimala.com/malatang.php?cid=26&lang=1
http://www.taimala.com/malatangshow.php?cid=27&id=146&lang=1
http://www.taimala.com/malatang.php?lang=1&page=7

RewriteRule ^news-([0-9]+)-([0-9]+)\.html$ news.php?lang=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^news-([0-9]+)\.html$ news.php?lang=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^news-([0-9]+)-([0-9]+)\.html$ news.php?cid=$1&lang=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^newsshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ newsshow.php?cid=$1&id=$2&lang=$3&page=$4
RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^case-([0-9]+)-([0-9]+)\.html$ case.php?lang=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^case-([0-9]+)\.html$ case.php?lang=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^show-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ show.php?cid=$1&id=$2&lang=$3&page=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^case-([0-9]+)-([0-9]+)\.html$ case.php?cid=$1&lang=$2
RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^malatang-([0-9]+)\.html$ malatang.php?lang=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^malatang-([0-9]+)-([0-9]+)\.html$ malatang.php?lang=$1&page=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^malatangshow-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)\.html$ malatangshow.php?cid=$1&id=$2&lang=$3&page=$4
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^malatang-([0-9]+)-1\.html$ malatang.php?cid=$1&lang=1


Recommended Reading