Htaccess File

ramonztro/lightwork-mvc/master/.htaccess

HTTP_HOST
#================================================================================
# HOSTGATOR PHP 5.5
#================================================================================
# AddHandler application/x-httpd-php55 .php

#================================================================================
# REDIRECT
#================================================================================
RewriteEngine On
# RewriteBase /
# RewriteCond %{HTTP_HOST} !^example.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]

#================================================================================
# APP
#================================================================================
RewriteRule ^/?$ index.php?action= [L]
RewriteRule ^(([a-zA-Z0-9_-]+/)*)([a-zA-Z0-9_-]+)/?$ index.php?action=$1$3 [QSA,L]
Exit mobile version