替换此域名“ example.ae " with the development server name and its subfolder " art.caps/examples ”(http://art.caps/examples)
RewriteCond% ^ www.example.ae $ [NC]
RewriteRule ^( . *)$ http://example.ae/ $ 1 [R = 301,L]
我试图改写这个,但似乎是错的 . 有人请帮我用开发服务器路径纠正这个问题 .
RewriteCond% ^( . *) . art.capital
RewriteRule ^( . *)$ http://art.caps/examples/ $ 1 [L,NC,QSA]
由于错误的url重写,opencart的Ajax无法正常工作 .
1 回答
通过将htaccess.txt重命名为.htaccess文件并编辑单行代码,可以解决此重写问题 .
替换此RewriteBase /
使用RewriteBase / examples