【发布时间】:2013-10-10 21:15:03
【问题描述】:
我正在使用来自学习视频的重写规则
但它不能正常工作
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
如果只是输入,我希望它能够接收 http://www.example.com/hmvctest/helloworld
但它只有在我输入时才有效 http://www.example.com/hmvctest/index.php/helloworld
目前只显示“未指定输入文件”我使用 codeigniter 和 cpanel 我已经尝试了下面的两个答案,但仍然没有运气我的网站使用 https
【问题讨论】:
标签: regex apache .htaccess codeigniter mod-rewrite