通过.htaccess文件控制html链接访问php文件
jianfly.com 2019-01-31 1464次浏览
RewriteEngine On RewriteRule ^([\w\d]+\d*)_(\w+)_(\d+)_(\w+)_(\d+).html$ $1.php?$2=$3&$4=$5 RewriteRule ^([\w\d]+\d*)_(\w+)_(\d+).html$ $1.php?$2=$3 RewriteRule ^(\w+).html$ $1.php
jianfly.com 2019-01-31 1464次浏览
RewriteEngine On RewriteRule ^([\w\d]+\d*)_(\w+)_(\d+)_(\w+)_(\d+).html$ $1.php?$2=$3&$4=$5 RewriteRule ^([\w\d]+\d*)_(\w+)_(\d+).html$ $1.php?$2=$3 RewriteRule ^(\w+).html$ $1.php