Welcome Guest, Not a member yet? Register   Sign In
How remove index.php from URL? Works on MAMP, but not Ubuntu. [SOLVED]
#1

[eluser]CoderReborn[/eluser]
I have it working on my Mac (MAMP), but can't get it working on my Ubuntu (Lucid) hosted server.

This works: mysite.com/index.php/home
But this generates 404 errors: mysite.com/home

I've followed the instructions from this post.

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've confirmed that mod_rewrite is loaded on Apache2.
- The .htaccess file is in the webroot (/var/www), which is also where my index.php and system directory is.
- The .htaccess file permissions are: -rwxrwxr-x

Thanks!


Messages In This Thread
How remove index.php from URL? Works on MAMP, but not Ubuntu. [SOLVED] - by El Forum - 09-29-2010, 05:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB