enoa7/petarung2/master/app/template/.htaccess
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]
Files
![HTTP_HOST, REQUEST_FILENAME, REQUEST_URI](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/enoa7/petarung2-app-template-htaccess.png)