Welcome Guest, Not a member yet? Register   Sign In
Routing oddity
#11

[eluser]Twisted1919[/eluser]
I think i found your error
try this htaccess :
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /myapp

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^(index\.php|pub|app|robots\.txt)
    RewriteRule ^(.*)$ index.php/$1 [L]

    
</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>
It should do the trick for you .
Oh, and change $config['uri_protocol'] = back to auto .
#12

[eluser]Jeffrey McManus[/eluser]
Thanks -- I replaced my .htaccess with yours and tried it again using every uri_protocol setting including AUTO. No change from before.
#13

[eluser]Twisted1919[/eluser]
Then i guess you should go on the hard way .
You said that when appending /index.php in front of your controllers , it works(or i am wrong?)
If that's the case, then i am almost sure that CI is fine , but the problem resides in your LAMP environment .
Could you try same on distinct LAMP environments ? Like switch from wamp/mamp to xampp or vice-versa ?
Check and recheck if apache loads all the modules , especially mod_rewrite . You can check in php with print_r(apache_get_modules());

Hope this helps somehow .
Let me know of your results .




Theme © iAndrew 2016 - Forum software by © MyBB