user15270366
user15270366

Reputation: 53

.htaccess file returns 500 Internal Server Error

I have something that is wrong in my .htaccess but I can't seem to figure out what. This my code:

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?/$1 [L, QSA]

Upvotes: 1

Views: 88

Answers (1)

RavinderSingh13
RavinderSingh13

Reputation: 133770

Have it your htaccess Rules file in this way, there are few things which I have fixed in this file.

Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php
RewriteEngine ON
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule !(index\.php|resources|images|css|js|robots\.txt|favicon\.ico) index.php?%{REQUEST_URI} [L,QSA,NC]

Upvotes: 2

Related Questions