.htaccess文件赢得';行不通
我正在使用CodeIgniter在XAMPP中运行我的应用程序。我有一个.htaccess文件,不再需要在url中包含index.php,但它不起作用 .htaccess文件的内容是.htaccess文件赢得';行不通,.htaccess,codeigniter,.htaccess,Codeigniter,我正在使用CodeIgniter在XAMPP中运行我的应用程序。我有一个.htaccess文件,不再需要在url中包含index.php,但它不起作用 .htaccess文件的内容是 Options +FollowSymLinks RewriteEngine on RewriteCond $1 !^(index\.php|crossdomain\.xml|captcha|images|assets|archive|css|js|uploads|robots\.txt) RewriteRule ^
Options +FollowSymLinks
RewriteEngine on
RewriteCond $1 !^(index\.php|crossdomain\.xml|captcha|images|assets|archive|css|js|uploads|robots\.txt)
RewriteRule ^(.*)$ /index.php?/$1 [L]
我已经将AllowOverride设置为all的所有目录。我已经启用了mod_rewrite,但我的链接仍然无法工作。它不会转到指定的URL,而是转到XAMPP主页
在我的配置文件中,也是这样:
$config['base_url']=''$config['index_page']='' 然后,鉴于: a href=“/signup” 我做得对吗?请帮忙。试试看
Options +FollowSymlinks
# Options +SymLinksIfOwnerMatch
RewriteEngine On
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|monitor\.php|resources|test_gui|img|css|js|favicon\.ico|(.*)\.(png|js|jpg|swf|css|gif|ico|jpeg|scss)$)
RewriteRule ^(.*)$ index.php/$1 [L]
还是不行。我做对了吗?在我的配置文件中:$config['base_url']=''$配置['index_page']='';也在视图中:我做得对吗?在某个子目录中有codeigniter吗?