Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
您的文件夹重写不是通用的。您将必须进行单独重写。和我之前的回答中提到的类似。您必须将它们添加到 web root 的 .htaccess 中。
文件夹
web root
.htaccess
RewriteEngine on RewriteBase / RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule ^ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(?:\.\w+|/)$ RewriteRule (.*) /$1/ [R,L] RewriteCond %{REQUEST_URI} ^(/log)(/\d+)$ RewriteRule ^ %1/member%2 [L] RewriteCond %{REQUEST_URI} ^(/log)(/\w+)$ RewriteRule ^ %1/folder3/folder2%2 [L] RewriteCond %{REQUEST_URI} ^(folder2)/(folder3) RewriteRule ^ %1/appl/custom/%2 [L] RewriteCond %{REQUEST_URI} ^(/folder2) RewriteRule ^(.*)$ /accout/log/folder1/$1 [L] RewriteCond %{REQUEST_URI} ^(/log)/member(/d+)$ RewriteRule ^ %1%2 [R,L] RewriteCond %{REQUEST_URI} ^(/log)/folder3/folder2(/name)$ RewriteRule ^ %1%2 [R,L] RewriteCond %{REQUEST_URI} ^(/folder2)/appl/custom(/folder3) RewriteRule ^ %1%2 [R,L] RewriteCond %{REQUEST_URI} ^/accout/log/folder1/folder2 RewriteRule accout/log/folder1/(folder2)(/(.*))?$ $1$2 [R,L]
Your folder rewrites are not generic. You will have to have individual rewrites. Similar to the one mentioned in my previous ans. You have to add them into web root's .htaccess.
folder
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
您的
文件夹
重写不是通用的。您将必须进行单独重写。和我之前的回答中提到的类似。您必须将它们添加到web root
的.htaccess
中。Your
folder
rewrites are not generic. You will have to have individual rewrites. Similar to the one mentioned in my previous ans. You have to add them intoweb root
's.htaccess
.