用开发服务器名及其子文件夹"art.caps/examples“(http://art.caps/examples)替换此域名"example.ae”
RewriteCond %{HTTP_HOST} ^www.example.ae$ NC
RewriteRule ^(.*)$ http://example.ae/$1 R=301,L
我试着重写这个,但它似乎是错的。任何人请帮助我纠正这与开发服务器的路径。
RewriteCond %{HTTP_HOST} ^(.*).art.capital
RewriteRule ^(.*)$ http://art.caps/examples/$1L,NC,QSA
由于不正确的url重写,opencart的Ajax无法工作。
发布于 2015-12-09 09:48:32
通过将htaccess.txt重命名为.htaccess文件并编辑一行代码,可以解决此重写问题。
替换此RewriteBase /
与RewriteBase /examples
https://stackoverflow.com/questions/34128784
复制相似问题