提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
下面是.htaccess规则 用apache环境访问正常
RewriteEngine On
RewriteRule ^index.html$ /index.php [L]
RewriteRule ^search.html$ search/search_kw.php [L]
RewriteRule ^search/(.*).html$ search/search_article.php?p=$1 [L]
RewriteRule ^m/(.*)-m.html$ m/m_article.php?p=$1 [L]
RewriteRule ^m/(.*).html$ m/index.php?c=$1 [L]
RewriteRule ^search/(.*)/([0-9]+)/$ search/search.php?kw=$1&t=1&page=$2 [L]
RewriteRule ^search/(.*)/$ search/search.php?kw=$1&t=1 [L]
RewriteRule ^tags/(.*)/([0-9]+)/$ search/search.php?kw=$1&t=2&page=$2 [L]
RewriteRule ^tags/(.*)/$ search/search.php?kw=$1&t=2 [L]
RewriteRule ^list/(.*)/([0-9]+).html$ list.php?c=$1&page=$2 [L]
RewriteRule ^list/(.*).html$ list.php?c=$1&page=1 [L]
RewriteRule ^article/20(.*)/(.*).html$ article/article.php?riqi=$1&p=$2 [L]
RewriteRule ^(.*)/20(.*)/(.*).html$ article.php?riqi=$2&p=$3&c=$1 [L]
RewriteRule ^article/(.*)/([0-9]+).html$ article/list.php?c=$1&page=$2 [L]
RewriteRule ^article/(.*).html$ article/list.php?c=$1 [L]
RewriteRule ^tags/index.html$ tags/index.php [L]
RewriteRule ^(.*).html$ search/search_article.php?p=$1 [L]
下面是nginx规则 怎么调试都显示403错误
rewrite ^/index.html$ /index.php last;
rewrite ^/search.html$ search/search_kw.php last;
rewrite ^/search/(.*).html$ search/search_article.php?p=$1 last;
rewrite ^/m/(.*)-m.html$ m/m_article.php?p=$1 last;
rewrite ^/m/(.*).html$ m/index.php?c=$1 last;
rewrite ^/search/(.*)/([0-9]+)/$ search/search.php?kw=$1&t=1&page=$2 last;
rewrite ^/search/(.*)/$ search/search.php?kw=$1&t=1 last;
rewrite ^/tags/(.*)/([0-9]+)/$ search/search.php?kw=$1&t=2&page=$2 last;
rewrite ^/tags/(.*)/$ search/search.php?kw=$1&t=2 last;
rewrite ^/list/(.*)/([0-9]+).html$ list.php?c=$1&page=$2 last;
rewrite ^/list/(.*).html$ list.php?c=$1&page=1 last;
rewrite ^/article/20(.*)/(.*).html$ article/article.php?riqi=$1&p=$2 last;
rewrite ^/(.*)/20(.*)/(.*).html$ article.php?riqi=$2&p=$3&c=$1 last;
rewrite ^/article/(.*)/([0-9]+).html$ article/list.php?c=$1&page=$2 last;
rewrite ^/article/(.*).html$ article/list.php?c=$1 last;
rewrite ^/tags/index.html$ tags/index.php last;
rewrite ^/(.*).html$ search/search_article.php?p=$1 last; |