Welcome Guest, Not a member yet? Register   Sign In
How to rewrite URLS to remove index.php AND force lowercase?
#11

[eluser]toopay[/eluser]
for removing index.php, this htaccess generally working...
Code:
RewriteEngine On
RewriteBase /

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
#12

[eluser]jasonsack[/eluser]
yeah, this htaccess does work too. My previous code (a lot shorter) works as well.

The problem is still the same with both: if a capitalized character is in the controller or function variables of the url, the page returns a 404.
#13

[eluser]osci[/eluser]
Maybe this could help you.




Theme © iAndrew 2016 - Forum software by © MyBB