mod_rewrite 更改子目录
结构
http://localhost/ci2
你好,我在 ci2 中有这个带有 .htaccess 的
RewriteEngine on
RewriteRule ^$ /ci2/index.php [L]
RewriteCond $1 !^(index\.php|resource|files|system|user_guide|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /ci2/index.php/$1 [L]
,现在我想将文件移动到一个子目录,
http://localhost/folder/ci2
我意识到它不能使用相同的 .htaccess 文件 那么需要进行哪些修改呢?
hello I have this structure
http://localhost/ci2
with this .htaccess inside ci2
RewriteEngine on
RewriteRule ^$ /ci2/index.php [L]
RewriteCond $1 !^(index\.php|resource|files|system|user_guide|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /ci2/index.php/$1 [L]
now I want to move the files to a subdirectory
http://localhost/folder/ci2
I realized that is not working with the same .htaccess file
so what modifications are necessary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该只需要更改为:
You should just need to change to: