Codeigniter | OVH | htaccess / url rewriting | Site very slow

后端 未结 3 1525
旧时难觅i
旧时难觅i 2021-01-28 15:48

Here is my htaccess for removing the index.php with codeigniter :

RewriteEngine On
RewriteCond $1 !^(index\\.php|assets|robots\\.txt)
RewriteRule ^(.*)$ index.ph         


        
3条回答
  •  离开以前
    2021-01-28 16:45

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L] 
    

    write this in your htaccess check this link to enable mod_rewrite function of apache setting

提交回复
热议问题