1、首先是开启rewrite_module(如何开启,百度搜索)
2、创建.htaccess文件(如何创建,百度搜索)
3、在.htaccess文件中打开重写服务:RewriteEngine On
4、参考资料:
# 修改以下语句中的 /supev 为你的播客目录地址,如果程序放在根目录中,请将 /supev
修改为 /
RewriteBase /supev
# Rewrite 系统规则请勿修改 RewriteRule
RewriteRule ^ivideo(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]
+))?.html$ ivideo.php?tv=$2&ti=$4&tc=$6&page=$8
RewriteRule ^ispecial(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-
9]+))?.html$ ispecial.php?tv=$2&ti=$4&tc=$6&page=$8
RewriteRule ^icategory.html$ icategory.php
RewriteRule ^category-cid-([0-9]+)(-tag-([^-]*))?(-timelimit-([0-9]+))?(-
orderlimit-([0-9]+))?(-page-([0-9]+))?.html$ category.php?
cid=$1&tag=$3&timelimit=$5&orderlimit=$7&page=$9
RewriteRule ^vspace-(mid|username)-(.+).html$ vspace.php?$1=$2
RewriteRule ^video-(vid|ivid)-(.+).html$ video.php?$1=$2
RewriteRule ^special-spid-([0-9]+).html$ special.php?spid=$1