.htaccess throws a 500 error

后端 未结 2 1383
后悔当初
后悔当初 2021-01-26 00:59

I am using CodeIgniter and need to get rid of the \"index.php\" in the URL. I copied the .htaccess file from codeigniter tutorial, emptied the $config[\'index_page\'] = \'\'; an

2条回答
  •  时光取名叫无心
    2021-01-26 01:35

    If this is really part of the .htaccess file, it would cause your problem:

    RewriteRule ^{.*)$ /index.php?/$1 [L]
                ^^^ typo?
    

    Should be:

    RewriteRule ^(.*)$ /index.php?/$1 [L]
    

提交回复
热议问题