i server 500 error htaccesss file in xampp enviorment.
my $config['index_page']
variable set ''
c:/xampp/htdocs/codeigniter_test/.htaccess
<ifmodule mod_rewrite.c> rewriteengine on rewritebase /codeigniter_test/ #removes access system folder users. #additionally allow create system.php controller, #previously not have been possible. #'system' can replaced if have renamed system folder. rewritecond %{request_uri} ^system.* rewriterule ^(.*)$ /index.php?/$1 [l] #when application folder isn't in system folder #this snippet prevents user access application folder #submitted by: fabdrol #rename 'application' applications folder name. rewritecond %{request_uri} ^application.* rewriterule ^(.*)$ /index.php?/$1 [l] #checks see if user attempting access valid file, #such image or css document, if isn't true sends #request index.php rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php?/$1 [l] </ifmodule> <ifmodule !mod_rewrite.c> # if don't have mod_rewrite installed, 404's # can sent index.php, , works normal. # submitted by: elliothaughin errordocument 404 /index.php </ifmodule>
so if go localhost/codeigniter_test/site/home
server 500 error.
site = controller
, home = function in site controller loads home view
also localhost/codeigniter_test/site/about
not working me. don't 404 page means mod_rewrite
module enabled. checked in httpd.conf
file.
apache logs says:
[core:alert] [pid 1484:tid 512] [client 127.0.0.1:3870] c:/xampp/htdocs/codeigniter_test/.htaccess:
edit: removed entire if part. localhost/codeigniter_test/ works. if go localhost/codeigniter_test/site/home doesnt work , 404 page.
edit2: change allowoverride none allowoverride in httpd conf file. 403 error when go to: localhost/codeigniter_test/site/home/
"the requested url /codeigniter_test/site/home not found on server."
i got similar issue, basically, it's permission issue:
try granting 755 permission on folders , subfolders
chmod 755 * chmod 755 */* chmod 755 */*/* chmod 755 */*/*/* chmod 755 */*/*/*/*
i have in .htaccess file
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule .* index.php/$0 [pt,l]
hope helps
Comments
Post a Comment