Htaccess File

enoa7/petarung2/master/app/template/.htaccess

HTTP_HOST, REQUEST_FILENAME, REQUEST_URI
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?petarungindonesia.com$
RewriteCond %{REQUEST_URI} !^/public/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /public/$1
RewriteCond %{HTTP_HOST} ^(www.)?petarungindonesia.com$
RewriteRule ^(/)?$ public/index.php [L] 

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*.php$ %{REQUEST_FILENAME}.php [QSA,L]
Exit mobile version