Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Index of/ error with 2.0.1
#3

[eluser]predat0r[/eluser]
[quote author="WanWizard" date="1300815295"]You use the "lazy people's" version of htaccess, which test file and directory access (using the -f and -d switches), and redirect everything else to index.php.
Don't do that. Exclude what needs to be excluded, and don't use generic switches.

Note that you can never have a real directory (one that has to be accessable from the URL) and a controller with the same name. Either the directory will be accessed (which happens now) so you can for example load images from it, or a redirect to the controller happens, in which case your images will be inaccesable.

To avoid this, you needs very specific exclusion rewrite rules, that for example do not rewrite for existing image files, but do for directory requests.[/quote]

Thanks, I easily changed my controller name, so the script works OK.
I've never known same dir and controller name could cause conflicts.
And I'll check your suggestion about rewrite.


Messages In This Thread
[SOLVED] Index of/ error with 2.0.1 - by El Forum - 03-22-2011, 06:20 AM
[SOLVED] Index of/ error with 2.0.1 - by El Forum - 03-22-2011, 06:34 AM
[SOLVED] Index of/ error with 2.0.1 - by El Forum - 03-22-2011, 06:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB