Isapi 重写器似乎正在插入一个额外的“index.php”
我试图在 Windows Server 上做一些简单的事情:我想让 URL www.xxxxx.co.uk/index.php/xxxxxx/xxxxx
显示为 www.xxxxx.co。 uk/xxxxxx/xxxxx
位于使用 Code Igniter 构建的网站上。
我的虚拟主机已设置 Isapi Rewriter 版本 3。
我的 .htaccess 文件显示:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? index.php/%{REQUEST_URI} [QSA,L]
但现在没有加载任何图像。
仔细观察,似乎在域名后面加载了一个额外的 index.php
。
有人有解决办法吗?
I am trying to do something simple on Windows Server: I want to make the URL www.xxxxx.co.uk/index.php/xxxxxx/xxxxx
appear as www.xxxxx.co.uk/xxxxxx/xxxxx
on a site that was built using Code Igniter.
My web host has set up the version 3 of Isapi Rewriter.
My .htaccess
file says:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? index.php/%{REQUEST_URI} [QSA,L]
but now, no images are being loaded.
On closer inspection, it appears that an extra index.php
is being loaded after the domain name.
Does anyone have a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试查看 CodeIgniter
config/config.php
文件。在第 29 行,确保
$config['index_page']
变量设置为空白。Try to see the CodeIgniter
config/config.php
file.On line 29, make sure the
$config['index_page']
variable is set to blank.