简单的 .htaccess 内部重写问题
我想做这个简单的内部写入:
http://localhost/icore4/t1/js/GeneralJs.js
到
http://localhost/icore4/js/GeneralJs.js
htaccess 位置
icore4/.htaccess
htaccess 代码
RewriteEngine on
RewriteRule ^(.*)/(.*)$ /$2 [NC,L]
底线,我想摆脱 t1 并将其放入查询字符串中。 到目前为止,我正为摆脱它而烦恼。
I want to do this simple internal write :
http://localhost/icore4/t1/js/GeneralJs.js
to
http://localhost/icore4/js/GeneralJs.js
htaccess location
icore4/.htaccess
htaccess code
RewriteEngine on
RewriteRule ^(.*)/(.*)$ /$2 [NC,L]
bottomline, I want to get rid of t1 and put it in the query string.
As of now, I am bothered about getting rid of it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个问题,我的问题只解决了同样的问题
htaccess重写和递归内部重定向< /a>
check out this question, my question only which solves the same problem
htaccess rewrite and recursive internal redirects