<ul>
<li>
project(root)/
<ul>
<li>.htaccess(old)</li>
<li>
app/
<ul>
<li>.htaccess(new)</li>
<li>
admin/
<ul>
<li>
new
<ul>
<li>index.php</li>
</ul>
</li>
</ul>
</li>
<li>landingpage.php</li>
</ul>
</li>
</ul>
</li>
</ul>
&#13;
第一件事: 来自:http://localhost/Sohil/project/app/admin/new/ TO:http://localhost/Sohil/project/app/admin/edit/?id=1
第二件事: 来自:http://localhost/Sohil/project/app/landingpage.php TO:http://localhost/Sohil/project/url/
RewriteEngine On
RewriteRule ^([0-9a-zA-Z-]+)/$ app/landingpage.php?landingpageurl=$1
RewriteRule ^app/admin/edit/(.*) app/admin/new/$1
如果在旧的htaccess中写代码然后在localhost中正常运行但不在实时服务器中运行..(旧的htaccess不在localhost中)
所以我尝试创建新的htaccss并运行,但它确实无效?