[eluser]arif[/eluser]
hello every ones
i`m kindly new to CI . and i start to learn using 2.0.2 now i have two problem.
i had an eror when trying to remove index.php on URI, i had trying to add this .htaccess to my .htaccess file conf
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /SabaPay
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]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
</IfModule>
but wont work . and also i had my modrewrite but i still cannot remove index.php from url
i had remove inde.php in config.php to
Code:
$config['index_page'] = "";
also
Code:
$config['uri_protocol'] = 'REQUEST_URI';
any suggestion ?
the second is
i try to make blog that require login to made a post
the login succusfull but neither the blog. becouse i make two model that is user model and blog model, when i load blog model i hadd an
eror 500 but when i adding my blog model method into user model that work succesfully,
my question is why i cannot load the blog model in my case ?
thank for your help
regard
Arif