irwifi/iSwift/master/.htaccess - Htaccess File

irwifi/iSwift/master/.htaccess

<Files .htaccess>
  order allow,deny
  deny from all
</Files>

#deny access to all folders with no index.php file
Options -Indexes

RewriteEngine on

#redirect non www url to url with www
#RewriteCond %{HTTP_HOST} !^www.swift.com$
#RewriteRule ^(.*)$ http://www.swift.com/$1 [R=301]

#redirect index.php to root
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/ 
RewriteRule ^index.php$ http://localhost/project/swift/ [R=301]

#add trailing slash if missing
RewriteRule ^(([a-z0-9-]+/)*[a-z0-9-]+)$  http://www.swift.com/$1/ [R=301]

RewriteRule ^f_img/([a-zA-Z0-9._-/]+)$ http://localhost/project/swift/app/ap_front/f_sys/f_img/$1
RewriteRule ^f_css/([a-zA-Z0-9._-/]+)$ http://localhost/project/swift/app/ap_front/f_sys/f_css/$1

RewriteRule ^([a-zA-Z0-9._]+).html$ index.php?k=$1
RewriteRule ^([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+).html$ index.php?k=$1&s=$2
RewriteRule ^([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+).html$ index.php?k=$1&s=$2&t=$3
RewriteRule ^([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+).html$ index.php?k=$1&s=$2&t=$3&a=$4
RewriteRule ^([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+).html$ index.php?k=$1&s=$2&t=$3&a=$4&b=$5
RewriteRule ^([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+)-([a-zA-Z0-9._]+).html$ index.php?k=$1&s=$2&t=$3&a=$4&b=$5&c=$6

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, THE_REQUEST

Comments

Apache