Welcome Guest, Not a member yet? Register   Sign In
trying to remove index.php from url and getting 500 error
#1

[eluser]matches[/eluser]
Hi,

I am trying to remove the index.php from the url and getting a 500 error.

I have changed:

Code:
$config['index_page'] = "index.php";

To

Code:
$config['index_page'] = "";


and

Code:
$config['uri_protocol']    = "AUTO";


To

Code:
$config['uri_protocol']    = "REQUEST_URI";


and this is the content of my .htaccess file:

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

I am running this on kubuntu 9.4, php5

Thanks for any help!
#2

[eluser]eoinmcg[/eluser]
have you enable the mod_rewrite module?

Code:
sudo a2enmod rewrite

also, have a look in /var/log/apache2/error.log to see what exactly is causing the 500 error
#3

[eluser]matches[/eluser]
brilliant!

thank you!
#4

[eluser]eoinmcg[/eluser]
glad it worked.

if you're curious about fine tuning your apache installation have a look at this article
http://articles.slicehost.com/2008/4/28/...fig-layout




Theme © iAndrew 2016 - Forum software by © MyBB