
RewriteOptions inherit
ErrorDocument 404 /welcome.html

Options +FollowSymlinks
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([a-z.]+)?lanscend\.com$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .? http://www.lanscend.com%{REQUEST_URI} [R=301,L]

RewriteRule ^index\.html$ index.php

RewriteRule ^login\.html$ login.php
RewriteRule ^register\.html$ register.php
RewriteRule ^enterprise\.html$ enterprise.php

RewriteRule ^menu_(.*)\.html$ menu.php?menu=$1

RewriteRule ^list_([0-9]+)\.html$ list.php?str_list=$1 [QSA,L]
RewriteRule ^list_([0-9]+)_([0-9]+)\.html$ list.php?str_list=$1&page=$2 [QSA,L]

RewriteRule ^article_([0-9]+)_([0-9]+)\.html$ article.php?artid=$1&str_list=$2
RewriteRule ^article_([0-9]+)_([0-9]+)_(.*)\.html$ article.php?artid=$1&str_list=$2&object=$3
RewriteRule ^article_(.*)\.html$ article.php?artid=$1 [QSA,L]

RewriteRule ^products_([0-9]+)\.html$ products.php?i=$1
RewriteRule ^productsshow_([0-9]+)_([0-9]+)\.html$ productsshow.php?id=$1&i=$2

RewriteRule ^enterpriseshow_([0-9]+)\.html$ enterpriseshow.php?epid=$1 [QSA,L]
RewriteRule ^enterpriseshow_([0-9]+)_([0-9]+)\.html$ enterpriseshow.php?epid=$1&menu_id=$2 [QSA,L]

<IfModule mime_module>
  AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php56___lsphp .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
