Welcome Guest, Not a member yet? Register   Sign In
Which .htaccess is it?
#3

[eluser]Phil Sturgeon[/eluser]
Both your previous ones will cause errors. I'm not sure what's wrong with your newest one, but that still isn't the best method for getting CI short urls going. Try this one:

Quote:RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|cgi-bin|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

This allows any existing files and folders to be accessed and anything that doesn't actually exist will go to CI. I guess the (index\.php|cgi-bin|robots\.txt) is made redundant but who cares.


Messages In This Thread
Which .htaccess is it? - by El Forum - 08-22-2007, 06:27 PM
Which .htaccess is it? - by El Forum - 08-22-2007, 11:15 PM
Which .htaccess is it? - by El Forum - 08-23-2007, 04:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB