Im using php 5.6.40 and codeigniter 3.1.9 on Mac OS Catalina
myroutes :
$route['default_controller'] = "Homepenta";
.htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteRule ^([^\.]+)$ $1.php [NC,L]
RewriteEngine On
<Files .htaccess>
order allow,deny
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
Options All -Indexes
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# This domain inherits the “PHP” package.
# php -- END cPanel-generated handler, do not edit
on browser
http:\\localhost\mastertransaksi\
show error
Directory Access is Forbidden
but if
http:\\localhost\mastertransaksi\Homepenta
its work
anyone can explation how to fix this? Thanks
My Answer:
'welcome';
Rate this post
3 of 5 based on 5788 votesComments