Welcome Guest, Not a member yet? Register   Sign In
htaccess doesnt work once uploaded to server
#1

[eluser]rossmurphy[/eluser]
Hi,

I'm getting this error when i navigate to http://www.mysite.com/pgs/home.

Quote:The requested URL /index.php/home was not found on this server.

But when i navigate to http://www.mysite.com/pgs/index.php/home it works. I know it has something to do with my .htaccess file. It works on my local server.

Here is my .htaccess.

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

Here is my config file:

Code:
$config['base_url'] = 'www.mysite.com/pgs';
$config['uri_protocol']    = "AUTO";

Anyone know why this wouldn't be working?

I have check mod rewrite is on.


Messages In This Thread
htaccess doesnt work once uploaded to server - by El Forum - 07-23-2009, 04:05 PM
htaccess doesnt work once uploaded to server - by El Forum - 07-23-2009, 04:32 PM
htaccess doesnt work once uploaded to server - by El Forum - 07-24-2009, 10:00 AM
htaccess doesnt work once uploaded to server - by El Forum - 07-24-2009, 01:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB