Apr
21
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<rewrite>
<rules>
<rule name="Rewrite subdomain">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^yourdomain\.com$" />
</conditions>
<action type="Redirect" url="http://www.yourdomain.com/{R:1}" appendQueryString="false"/>
</rule>
<rule name="From Ultimate SEO URLs 1" stopProcessing="true">
<match url="^(.*)-p-(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_info&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 2" stopProcessing="true">
<match url="^(.*)-c-(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=index&cPath={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 3" stopProcessing="true">
<match url="^(.*)-m-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=index&manufacturers_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 4" stopProcessing="true">
<match url="^(.*)-pi-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=popup_image&pID={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 5" stopProcessing="true">
<match url="^(.*)-pr-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_reviews&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 6" stopProcessing="true">
<match url="^(.*)-pri-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_reviews_info&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For Open Operations Info Manager" stopProcessing="true">
<match url="^(.*)-i-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=info_manager&pages_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 1" stopProcessing="true">
<match url="^news/?$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 2" stopProcessing="true">
<match url="^news/rss.xml$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_rss&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 3" stopProcessing="true">
<match url="^news/archive/?$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_archive&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 4" stopProcessing="true">
<match url="^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news&date={R:1}-{R:2}-{R:3}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 5" stopProcessing="true">
<match url="^news/archive/([0-9]{4})-([0-9]{2}).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_archive&date={R:1}-{R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 6" stopProcessing="true">
<match url="^news/(.*)-a-([0-9]+)-comments.html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_comments&article_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 7" stopProcessing="true">
<match url="^news/(.*)-a-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_article&article_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="All other pages" stopProcessing="true">
<match url="^(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page={R:1}&" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
<rewrite>
<rules>
<rule name="Rewrite subdomain">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^yourdomain\.com$" />
</conditions>
<action type="Redirect" url="http://www.yourdomain.com/{R:1}" appendQueryString="false"/>
</rule>
<rule name="From Ultimate SEO URLs 1" stopProcessing="true">
<match url="^(.*)-p-(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_info&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 2" stopProcessing="true">
<match url="^(.*)-c-(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=index&cPath={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 3" stopProcessing="true">
<match url="^(.*)-m-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=index&manufacturers_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 4" stopProcessing="true">
<match url="^(.*)-pi-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=popup_image&pID={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 5" stopProcessing="true">
<match url="^(.*)-pr-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_reviews&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="From Ultimate SEO URLs 6" stopProcessing="true">
<match url="^(.*)-pri-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=product_reviews_info&products_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For Open Operations Info Manager" stopProcessing="true">
<match url="^(.*)-i-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=info_manager&pages_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 1" stopProcessing="true">
<match url="^news/?$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 2" stopProcessing="true">
<match url="^news/rss.xml$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_rss&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 3" stopProcessing="true">
<match url="^news/archive/?$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_archive&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 4" stopProcessing="true">
<match url="^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news&date={R:1}-{R:2}-{R:3}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 5" stopProcessing="true">
<match url="^news/archive/([0-9]{4})-([0-9]{2}).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_archive&date={R:1}-{R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 6" stopProcessing="true">
<match url="^news/(.*)-a-([0-9]+)-comments.html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_comments&article_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="For dreamscape's News and Articles Manager 7" stopProcessing="true">
<match url="^news/(.*)-a-([0-9]+).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page=news_article&article_id={R:2}&" appendQueryString="true" />
</rule>
<rule name="All other pages" stopProcessing="true">
<match url="^(.*).html$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?main_page={R:1}&" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
Apr
21
# if the requested file exists, return it immediately
if (-f $request_filename) {
break;
}
rewrite “^/(.*)-p-(.*).html$” /index.php?main_page=product_info&products_id=$2&% last;
rewrite “^/(.*)-c-(.*).html$” /index.php?main_page=index&cPath=$2&% last;
rewrite “^/(.*)-m-([0-9]+).html$” /index\.php?main_page=index&manufacturers_id=$2&% last;
rewrite “^/(.*)-pi-([0-9]+).html$” /index\.php?main_page=popup_image&pID=$2&% last;
rewrite “^/(.*)-pr-([0-9]+).html$” /index\.php?main_page=product_reviews&products_id=$2&% last;
rewrite “^/(.*)-pri-([0-9]+).html$” /index\.php?main_page=product_reviews_info&products_id=$2&% last;
# For wordpress on zencart by Jeff
rewrite “^/wp/(.*).html$” /index.php?main_page=wordpress&page_id=$1&% last;
# For eazy pages
rewrite “^/(.*)-ezp-([0-9]+).html$” /index\.php?main_page=page&id=$2&% last;
# For Open Operations Info Manager
rewrite “^(.*)-i-([0-9]+).html” /index.php?main_page=info_manager&pages_id=$2&% last;
# For dreamscape¡¯s News & Articles Manager
rewrite “^news/?” /index.php?main_page=news&% last;
rewrite “^news/rss.xml” /index.php?main_page=news_rss&% last;
rewrite “^news/archive/?” /index.php?main_page=news_archive&% last;
rewrite “^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html” /index.php?main_page=news&date=$1-$2-$3&% last;
rewrite “^news/archive/([0-9]{4})-([0-9]{2}).html” /index.php?main_page=news_archive&date=$1-$2&% last;
rewrite “^news/(.*)-a-([0-9]+)-comments.html” /index.php?main_page=news_comments&article_id=$2&% last;
rewrite “^news/(.*)-a-([0-9]+).html” /index.php?main_page=news_article&article_id=$2&% last;
# All other pages
# Don‘t rewrite real files or directories
rewrite “^(.*).html” /index.php?main_page=$1&% last;
if (-f $request_filename) {
break;
}
rewrite “^/(.*)-p-(.*).html$” /index.php?main_page=product_info&products_id=$2&% last;
rewrite “^/(.*)-c-(.*).html$” /index.php?main_page=index&cPath=$2&% last;
rewrite “^/(.*)-m-([0-9]+).html$” /index\.php?main_page=index&manufacturers_id=$2&% last;
rewrite “^/(.*)-pi-([0-9]+).html$” /index\.php?main_page=popup_image&pID=$2&% last;
rewrite “^/(.*)-pr-([0-9]+).html$” /index\.php?main_page=product_reviews&products_id=$2&% last;
rewrite “^/(.*)-pri-([0-9]+).html$” /index\.php?main_page=product_reviews_info&products_id=$2&% last;
# For wordpress on zencart by Jeff
rewrite “^/wp/(.*).html$” /index.php?main_page=wordpress&page_id=$1&% last;
# For eazy pages
rewrite “^/(.*)-ezp-([0-9]+).html$” /index\.php?main_page=page&id=$2&% last;
# For Open Operations Info Manager
rewrite “^(.*)-i-([0-9]+).html” /index.php?main_page=info_manager&pages_id=$2&% last;
# For dreamscape¡¯s News & Articles Manager
rewrite “^news/?” /index.php?main_page=news&% last;
rewrite “^news/rss.xml” /index.php?main_page=news_rss&% last;
rewrite “^news/archive/?” /index.php?main_page=news_archive&% last;
rewrite “^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html” /index.php?main_page=news&date=$1-$2-$3&% last;
rewrite “^news/archive/([0-9]{4})-([0-9]{2}).html” /index.php?main_page=news_archive&date=$1-$2&% last;
rewrite “^news/(.*)-a-([0-9]+)-comments.html” /index.php?main_page=news_comments&article_id=$2&% last;
rewrite “^news/(.*)-a-([0-9]+).html” /index.php?main_page=news_article&article_id=$2&% last;
# All other pages
# Don‘t rewrite real files or directories
rewrite “^(.*).html” /index.php?main_page=$1&% last;
Apr
21
url.rewrite-if-not-file = (
"^/news$" => "index.php?main_page=news",
"^/page\.html\?chapter=(.*)&id=(.*)$"=>"/index.php?main_page=page&id=$2&chapter=$1",
"^/page\.html\?id=(.*)$"=>"/index.php?main_page=page&id=$1",
"^/(.*)-ezp-(.*)\.html(\?(.*))*$"=>"/index.php?main_page=page&id=$2",
"^/page_(.*)\.html$"=>"/index.php?main_page=page_$1",
"^/(.*)-p-(.*)\.html(\?(.*))?$" => "/index.php?main_page=product_info&products_id=$2&$4",
"^/(.*)-a-(.*)\.html(\?(.*))?$" => "index.php?main_page=news_article&article_id=$2&$4",
"^/(.*)-c-(.*)\.html(\?(.*))?$" => "/index.php?main_page=index&cPath=$2&$4",
"^/(.*)-pi-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=popup_image&pID=$2&$4",
"^/(.*)-m-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=index&manufacturers_id=$2&$4",
"^/(.*)-pr-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=product_reviews&product_id=$2&$4",
"^/(.*)-pri-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=product_reviews_info&product_id=$2&$4",
"^/login\.html(\?(.*))?$" => "/index.php?main_page=login&$2",
"^/shopping_cart\.html(\?(.*))?$" => "/index.php?main_page=shopping_cart&$2",
"^/checkout_shipping\.html(\?(.*))?$" => "/index.php?main_page=checkout_shipping&$2",
"^/privacy\.html(\?(.*))?$" => "/index.php?main_page=privacy&$2",
"^/shippinginfo\.html(\?(.*))?$" => "/index.php?main_page=shippinginfo&$2",
"^/conditions\.html(\?(.*))?$" => "/index.php?main_page=conditions&$2",
"^/contact_us\.html(\?(.*))?$" => "/index.php?main_page=contact_us&$2",
"^/site_map\.html(\?(.*))?$" => "/index.php?main_page=site_map&$2",
"^/gv_faq\.html(\?(.*))?$" => "/index.php?main_page=gv_faq&$2",
"^/discount_coupon\.html(\?(.*))?$" => "/index.php?main_page=discount_coupon&$2",
"^/unsubscribe\.html(\?(.*))?$" => "/index.php?main_page=unsubscribe&$2",
"^/products_new\.html(\?(.*))?$" => "/index.php?main_page=products_new&$2",
"^/products_all\.html(\?(.*))?$" => "/index.php?main_page=products_all&$2",
"^/advanced_search\.html(\?(.*))?$" => "/index.php?main_page=advanced_search&$2",
"^/advanced_search_result\.html(\?(.*))?$" => "/index.php?main_page=advanced_search_result&$2",
"^/password_forgotten\.html(\?(.*))?$" => "/index.php?main_page=password_forgotten&$2",
"^/info_shopping_cart\.html(\?(.*))?$" => "/index.php?main_page=info_shopping_cart&$2",
"^/popup_search_help\.html(\?(.*))?$" => "/index.php?main_page=popup_search_help&$2",
"^/popup_shipping_estimator\.html(\?(.*))?$" => "/index.php?main_page=popup_shipping_estimator&$2",
"^/product_reviews_write\.html(\?(.*))?$" => "/index.php?main_page=product_reviews_write&$2",
"^/product_reviews\.html(\?(.*))?$" => "/index.php?main_page=product_reviews&$2",
"^/product_reviews\?product_id=(.*)$" => "/index.php?main_page=product_reviews_info&products_id=$1&reviews_id=31",
"^/tell_a_friend\.html(\?(.*))?$" => "/index.php?main_page=tell_a_friend&$2",
"^/create_account\.html(\?(.*))?$" => "/index.php?main_page=create_account&$2",
"^/create_account_success\.html(\?(.*))?$" => "/index.php?main_page=create_account_success&$2",
"^/account\.html(\?(.*))?$" => "/index.php?main_page=account&$2",
"^/logoff\.html(\?(.*))?$" => "/index.php?main_page=logoff&$2",
"^/account_edit\.html(\?(.*))?$" => "/index.php?main_page=account_edit&$2",
"^/address_book\.html(\?(.*))?$" => "/index.php?main_page=address_book&$2",
"^/address_book_process\.html(\?(.*))?$" => "/index.php?main_page=address_book_process&$2",
"^/account_password\.html(\?(.*))?$" => "/index.php?main_page=account_password&$2",
"^/account_newsletters\.html(\?(.*))?$" => "/index.php?main_page=account_newsletters&$2",
"^/reviews\.html(\?(.*))?$" => "/index.php?main_page=reviews&$2",
"^/news\/archive\/(.*)\.html$" => "/index.php?main_page=news_archive&date=$1",
"^(.*)\.html(\?(.*))?$"=>"/index.php?main_page=$1&$4"
)
"^/news$" => "index.php?main_page=news",
"^/page\.html\?chapter=(.*)&id=(.*)$"=>"/index.php?main_page=page&id=$2&chapter=$1",
"^/page\.html\?id=(.*)$"=>"/index.php?main_page=page&id=$1",
"^/(.*)-ezp-(.*)\.html(\?(.*))*$"=>"/index.php?main_page=page&id=$2",
"^/page_(.*)\.html$"=>"/index.php?main_page=page_$1",
"^/(.*)-p-(.*)\.html(\?(.*))?$" => "/index.php?main_page=product_info&products_id=$2&$4",
"^/(.*)-a-(.*)\.html(\?(.*))?$" => "index.php?main_page=news_article&article_id=$2&$4",
"^/(.*)-c-(.*)\.html(\?(.*))?$" => "/index.php?main_page=index&cPath=$2&$4",
"^/(.*)-pi-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=popup_image&pID=$2&$4",
"^/(.*)-m-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=index&manufacturers_id=$2&$4",
"^/(.*)-pr-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=product_reviews&product_id=$2&$4",
"^/(.*)-pri-([0-9]+)\.html(\?(.*))?$" => "/index.php?main_page=product_reviews_info&product_id=$2&$4",
"^/login\.html(\?(.*))?$" => "/index.php?main_page=login&$2",
"^/shopping_cart\.html(\?(.*))?$" => "/index.php?main_page=shopping_cart&$2",
"^/checkout_shipping\.html(\?(.*))?$" => "/index.php?main_page=checkout_shipping&$2",
"^/privacy\.html(\?(.*))?$" => "/index.php?main_page=privacy&$2",
"^/shippinginfo\.html(\?(.*))?$" => "/index.php?main_page=shippinginfo&$2",
"^/conditions\.html(\?(.*))?$" => "/index.php?main_page=conditions&$2",
"^/contact_us\.html(\?(.*))?$" => "/index.php?main_page=contact_us&$2",
"^/site_map\.html(\?(.*))?$" => "/index.php?main_page=site_map&$2",
"^/gv_faq\.html(\?(.*))?$" => "/index.php?main_page=gv_faq&$2",
"^/discount_coupon\.html(\?(.*))?$" => "/index.php?main_page=discount_coupon&$2",
"^/unsubscribe\.html(\?(.*))?$" => "/index.php?main_page=unsubscribe&$2",
"^/products_new\.html(\?(.*))?$" => "/index.php?main_page=products_new&$2",
"^/products_all\.html(\?(.*))?$" => "/index.php?main_page=products_all&$2",
"^/advanced_search\.html(\?(.*))?$" => "/index.php?main_page=advanced_search&$2",
"^/advanced_search_result\.html(\?(.*))?$" => "/index.php?main_page=advanced_search_result&$2",
"^/password_forgotten\.html(\?(.*))?$" => "/index.php?main_page=password_forgotten&$2",
"^/info_shopping_cart\.html(\?(.*))?$" => "/index.php?main_page=info_shopping_cart&$2",
"^/popup_search_help\.html(\?(.*))?$" => "/index.php?main_page=popup_search_help&$2",
"^/popup_shipping_estimator\.html(\?(.*))?$" => "/index.php?main_page=popup_shipping_estimator&$2",
"^/product_reviews_write\.html(\?(.*))?$" => "/index.php?main_page=product_reviews_write&$2",
"^/product_reviews\.html(\?(.*))?$" => "/index.php?main_page=product_reviews&$2",
"^/product_reviews\?product_id=(.*)$" => "/index.php?main_page=product_reviews_info&products_id=$1&reviews_id=31",
"^/tell_a_friend\.html(\?(.*))?$" => "/index.php?main_page=tell_a_friend&$2",
"^/create_account\.html(\?(.*))?$" => "/index.php?main_page=create_account&$2",
"^/create_account_success\.html(\?(.*))?$" => "/index.php?main_page=create_account_success&$2",
"^/account\.html(\?(.*))?$" => "/index.php?main_page=account&$2",
"^/logoff\.html(\?(.*))?$" => "/index.php?main_page=logoff&$2",
"^/account_edit\.html(\?(.*))?$" => "/index.php?main_page=account_edit&$2",
"^/address_book\.html(\?(.*))?$" => "/index.php?main_page=address_book&$2",
"^/address_book_process\.html(\?(.*))?$" => "/index.php?main_page=address_book_process&$2",
"^/account_password\.html(\?(.*))?$" => "/index.php?main_page=account_password&$2",
"^/account_newsletters\.html(\?(.*))?$" => "/index.php?main_page=account_newsletters&$2",
"^/reviews\.html(\?(.*))?$" => "/index.php?main_page=reviews&$2",
"^/news\/archive\/(.*)\.html$" => "/index.php?main_page=news_archive&date=$1",
"^(.*)\.html(\?(.*))?$"=>"/index.php?main_page=$1&$4"
)