Hi,
I've got so far with converting the basics of LemonStand's RewriteRules, but would appreciate any help or pointers from anyone with the remaining lines.
.htaccess rewrites:
#
# Do not allow executing any PHP scripts
#
RewriteRule ^(.*).php$ index.php [L]
#
# The following section automatically adds a trailing slash to all URLs
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteCond %{HTTP:X-REQUESTED-WITH} !^(XMLHttpRequest)$
RewriteCond %{REQUEST_METHOD} !^HEAD$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule (.*)([^/])$ %{REQUEST_URI}/ [R=301,L]
#
# Product files downloading URL
#
RewriteRule (^download_product_file/.*) index.php?q=/$1 [L,QSA]
#
# Administration Area file downloading URL
#
RewriteRule ls_backend/files/get/(.*) index.php?q=/backend_file_get/$1 [L]
#
# All other requests
#
RewriteCond %{REQUEST_URI} !(\.(ico|js|jpg|jpeg|gif|css|png|swf|txt|xml|xls)$) [NC]
RewriteCond %{REQUEST_URI} !(phproad/thirdpart/.*)
RewriteRule ^(.*)$ index.php?q=/$1 [L,QSA]
What I've got so far:
UrlToolkit {
ToolkitID = lemonstand
# Disallow execution of other PHP scripts
Match ^/(.*).php$ Rewrite /index.php
# TODO Add a trailing slash to all URLs
# Product files downloading URL
Match (^/download_product_file/.*) Rewrite /index.php?q=$1
# Administration Area file downloading URL
Match ^/ls_backend/files/get/(.*) Rewrite /index.php?q=/backend_file_get/$1
# TODO All other requests
}