Welcome Guest, Not a member yet? Register   Sign In
404 page not found...
#21

[eluser]Aken[/eluser]
[quote author="Mirge" date="1312488518"][quote author="Aken" date="1312468552"]Yes that's the exact functionality it should have. I thought that's what you were requesting. The .htaccess says "If this URL does not contain a valid directory or file, rewrite the URL to this...". Existing files and directories will take priority.

If you want your CI controllers to always take priority over any existing directories that are accessible via the same URL, just remove this part of the .htaccess:
Code:
RewriteCond %{REQUEST_FILENAME} !-d
That way, it will only check that the requested URL is a valid file (if it is, it will display the file, not rewrite to CodeIgniter).

I'd still recommend finding an alternative to that (existing files and directories should always be higher priority in my opinion), but I suppose there may be situations where it's desired.[/quote]

-d flag is for directories
-f flag is for files[/quote]
Yes, I established that...




Theme © iAndrew 2016 - Forum software by © MyBB