Welcome Guest, Not a member yet? Register   Sign In
index function in Controller not working
#8

[eluser]toopay[/eluser]
[quote author="eberth" date="1302898591"]
This route is what i´ve always used to remove the controller from the url,
Code:
$route['^(?!formas|archivos).*'] = "site/$0";
[/quote]

Why you ALWAYS remove the controller from the url?? What for?
[quote author="eberth" date="1302898591"]
and the .htaccess i´m using to remove the index.php

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^/system.*
    RewriteRule ^(.*)$ index.php?/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+)$ index.php?/$1 [L]
</IfModule>
[/quote]
for .htaccess, this ussually working in (almost) any situation :
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?/$1


Messages In This Thread
index function in Controller not working - by El Forum - 04-14-2011, 05:17 PM
index function in Controller not working - by El Forum - 04-15-2011, 12:15 AM
index function in Controller not working - by El Forum - 04-15-2011, 07:55 AM
index function in Controller not working - by El Forum - 04-15-2011, 07:58 AM
index function in Controller not working - by El Forum - 04-15-2011, 08:57 AM
index function in Controller not working - by El Forum - 04-15-2011, 09:16 AM
index function in Controller not working - by El Forum - 04-15-2011, 02:23 PM
index function in Controller not working - by El Forum - 04-16-2011, 12:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB