View Single Post
  #17  
Old 03-17-2008, 11:36 PM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [MODULE] XC SEO v1.3.0 Released

XC SEO now supports Zeus server! What has been missing, was Zeus-specific rewrite rules.
These rules have been tested on a live website powered by Zeus webserver.

You'll need to login to your Zeus control panel, enable Rewrites, and then paste in the following rules (note, Zeus rewrite syntax is bulkier than Apache's, which is why this ruleset is so long):

Code:
RULE_0_START: # get the document root map path into SCRATCH:DOCROOT from / # initialize our variables set SCRATCH:ORIG_URL = %{URL} set SCRATCH:REQUEST_URI = %{URL} # see if theres any queries in our URL match URL into $ with ^(.*)\?(.*)$ if matched then set SCRATCH:REQUEST_URI = $1 set SCRATCH:QUERY_STRING = $2 endif RULE_0_END: RULE_1_START: # Rewrite SEO category URL's match URL into $ with ^([^\/]*/)?[^\/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&cat=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-up-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?sort=$2&sort_direction=0&cat=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-down-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?sort=$2&sort_direction=1&cat=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-c-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1home.php?cat=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-up-c-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&sort=$2&sort_direction=0&cat=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-down-c-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&sort=$2&sort_direction=1&cat=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-c-([0-9]+)\.html if matched then set URL = $1home.php?printable=Y&cat=$2 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-up-c-([0-9]+)\.html if matched then set URL = $1home.php?sort=$2&sort_direction=0&cat=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-down-c-([0-9]+)\.html if matched then set URL = $1home.php?sort=$2&sort_direction=1&cat=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-c-([0-9]+)\.html if matched then set URL = $1home.php?cat=$2 goto QSA_RULE_START endif # Rewrite SEO manufacturers URL's match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&manufacturerid=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-up-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-down-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3&page=$4 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-m-([0-9]+)-p-([0-9]+)\.html if matched then set URL = $1manufacturers.php?manufacturerid=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-up-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&sort=$2&sort_direction=0&manufacturerid=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-(productcode|title|price|orderby)-down-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&sort=$2&sort_direction=1&manufacturerid=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?printable=Y&manufacturerid=$2 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-up-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?sort=$2&sort_direction=0&manufacturerid=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-(productcode|title|price|orderby)-down-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?sort=$2&sort_direction=1&manufacturerid=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-m-([0-9]+)\.html if matched then set URL = $1manufacturers.php?manufacturerid=$2 goto QSA_RULE_START endif # Rewrite SEO product URL's match URL into $ with ^([^\/]*\/)?[^\/]+-print-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html if matched then set URL = $1product.php?printable=Y&productid=$4&cat=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-c-([0-9]+)-p-([0-9]+)-pr-([0-9]+)\.html if matched then set URL = $1product.php?productid=$4&cat=$2&page=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-c-([0-9]+)-pr-([0-9]+)\.html if matched then set URL = $1product.php?productid=$3&cat=$2 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-print-pr-([0-9]+)\.html if matched then set URL = $1product.php?printable=Y&productid=$2 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-pr-([0-9]+)\.html if matched then set URL = $1product.php?productid=$2 goto QSA_RULE_START endif # Rewrite SEO static page URL's match URL into $ with ^([^\/]*\/)?[^\/]+-print-pg-([0-9]+)\.html if matched then set URL = $1pages.php?printable=Y&pageid=$2 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?[^\/]+-pg-([0-9]+)\.html if matched then set URL = $1pages.php?pageid=$2 goto QSA_RULE_START endif # Rewrite SEO search URL's match URL into $ with ^([^\/]*\/)?([^\/]+)-search-c-([0-9]+)(-[^-]+)*\.html if matched then set URL = $1search.php?mode=search&substring=$2&cat=$3 goto QSA_RULE_START endif match URL into $ with ^([^\/]*\/)?([^\/]+)-search(-[^-]+)*\.html if matched then set URL = $1search.php?mode=search&substring=$2 goto QSA_RULE_START endif # if we made it here then its no rewrite goto END RULE_1_END: QSA_RULE_START: # append the query string if there was one originally # the same as [QSA,L] for apache match SCRATCH:ORIG_URL into % with \?(.*)$ if matched then set URL = %{URL}&%{SCRATCH:QUERY_STRING} endif goto END QSA_RULE_END:
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote