Welcome Guest, Not a member yet? Register   Sign In
removing index.php from url
#1

Hi

Like the title says i'm trying to remove index.php from the url so instead of

Code:
http://localhost/index.php/login

i can just write

Code:
http://localhost/login

I created a htaccess file and put it in the same directory as index.php (which is also the directory containing application directory, system directory, etc. All i wrote in the htaccess file is whats recommended in CI3 documentation:

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

However when i upload the website and type in
Code:
http://localhost/login

i get the error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80.

What am i doing wrong?

Thanks
Reply


Messages In This Thread
removing index.php from url - by gloosemore - 09-21-2015, 09:09 AM
RE: removing index.php from url - by PaulD - 09-21-2015, 10:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB