.htaccess related codeigniter. why error 404 page not found?
befor I add my website to any hosting I used xampp, so I caller url like :
http://localhost/myCI/folderAdmin/controller/
in my xampp I use this htaccess file:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ myCIname/index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
all feature it's work well. but in hosting any error in one page, that
give me '404 page not found'. I called url :
http://www.myurl.com/folderAdmin/controller/
with the htaccess file:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
what's wrong with that? please for help.
thank you for all answer.
Thursday, August 15, 2013
.htaccess related codeigniter. why error 404 page not found?
Posted on 10:03 PM by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment