伪静态规则优化
<IfModule mod_rewrite.c><ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)list/(+)(-s-())?(-p-())?(-(+))?\.html$ $1list.php?catid=$2&sort=$4&price=$6&page=$8
RewriteRule ^(.*)item/(+)\.html$ $1item.php?id=$2
RewriteRule ^(.*)search/(+)(-c-(+))?(-s-())?(-(+))?\.html$ $1search.php?kw=$2&catid=$4&sort=$6&page=$8
RewriteRule ^(.*)shop/(+)(-c(+))?(-(+))?\.html$ $1shop.php?nick=$2&catid=$4&page=$6
RewriteRule ^(.*)photo/(+)\.jpg$ $1photo.php?u=$2
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0 no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>
将伪静态规则优化下
怎么就不可以使用了
还请大家帮忙看下
后台-搜索优化-伪静态规则 也要改,不能只改伪静态配置文件
后台-搜索优化-伪静态规则
只有针对商品之类的设置
没有
<IfModule mod_rewrite.c>
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0 no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
</IfModule>
我指的是修改伪静态规则
程序带的伪静态规则没什么问题,不懂你要怎么优化 不会 还瞎折腾啥 一个更新你就得改
页:
[1]