Jump to content

Converting Apache .htaccess to ZEUS Web Server rewrite.script


Recommended Posts

  • 2 months later...

I have it almost working - I just need to get the Query String appended for pagination, etc.

The following assumes an install folder of "shop".


match URL into $ with ^/shop/([a-z0-9]+)-([a-z0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$
if matched set URL=/shop/img/p/$1-$2$3.jpg 

match URL into $ with ^/shop/([0-9]+)-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$
if matched set URL=/shop/img/p/$1-$2.jpg 

match URL into $ with ^/shop/([0-9]+)(-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$
if matched set URL=/shop/img/c/$1$2.jpg 

match URL into $ with ^/shop/lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*)\.html(.*)$
if matched set URL=/shop/product.php?id_product=$3&isolang;=$1$5 

match URL into $ with ^/shop/lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*)\.html(.*)$
if matched set URL=/shop/product.php?id_product=$2&isolang;=$1$4 

match URL into $ with ^/shop/lang-([a-z]{2})/([0-9]+)-([a-zA-Z0-9-]*)(.*)$
if matched set URL=/shop/category.php?id_category=$2&isolang;=$1 

match URL into $ with ^/shop/([a-zA-Z0-9-]*)/([0-9]+)-([a-zA-Z0-9-]*)\.html(.*)$
if matched set URL=/shop/product.php?id_product=$2$4 

match URL into $ with ^/shop/([0-9]+)-([a-zA-Z0-9-]*)\.html(.*)$
if matched set URL=/shop/product.php?id_product=$1$3 

match URL into $ with ^/shop/([0-9]+)-([a-zA-Z0-9-]*)(.*)$
if matched set URL=/shop/category.php?id_category=$1 

match URL into $ with ^/shop/content/([0-9]+)-([a-zA-Z0-9-]*)(.*)$
if matched set URL=/shop/cms.php?id_cms=$1 

match URL into $ with ^/shop/([0-9]+)__([a-zA-Z0-9-]*)(.*)$
if matched set URL=/shop/supplier.php?id_supplier=$1$3 

match URL into $ with ^/shop/([0-9]+)_([a-zA-Z0-9-]*)(.*)$
if matched set URL=/shop/manufacturer.php?id_manufacturer=$1$3 

match URL into $ with ^/shop/lang-([a-z]{2})/(.*)$
if matched set URL=/shop/$2?isolang=$1 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...