Welcome Guest, Not a member yet? Register   Sign In
Missing slash (server 404)
#1

[eluser]Unknown[/eluser]
Hi,

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|web|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
Aplication reside in http://host.com/ci directory
It works fine on my localhost, but on normal server i cannot use http://host.com/ci - i have to use (otherwise getting server 404) - http://host.com/ci/ (slash added).
I spent over 2 hours trying resolve this problem with .htaccess and reading topics here :|
Maybe someone had similar problem?

best regards
(sorry for my english)
#2

[eluser]coolfactor[/eluser]
I use the following:

Code:
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>

You might want to try it to see if your problem goes away. Your approach has other advantages you may want to hang on to, but at least this might help you narrow down the problem.
#3

[eluser]Unknown[/eluser]
Thank You. It works Smile




Theme © iAndrew 2016 - Forum software by © MyBB