千万个美丽的未来,抵不上一个温暖的现在,每一个真实的现在,都是我们曾经幻想的未来!
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]
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&amp;products_id={R:2}&amp;" 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&amp;cPath={R:2}&amp;" 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&amp;manufacturers_id={R:2}&amp;" 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&amp;pID={R:2}&amp;" 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&amp;products_id={R:2}&amp;" 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&amp;products_id={R:2}&amp;" 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&amp;pages_id={R:2}&amp;" 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&amp;" 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&amp;" 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&amp;" 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&amp;date={R:1}-{R:2}-{R:3}&amp;" 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&amp;date={R:1}-{R:2}&amp;" 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&amp;article_id={R:2}&amp;" 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&amp;article_id={R:2}&amp;" 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}&amp;" appendQueryString="true" />
       </rule>
     </rules>
    </rewrite>
    </system.webServer>
    <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
    </system.web>
</configuration>
Tags: , ,
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;
Tags: , ,
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"
)
Tags: ,
Apr 18
[ISAPI_Rewrite]
CacheClockRate 3600
RepeatLimit 32
RewriteBase /
RewriteRule ^(.*)-p-(.*).html(\?)?(.*)? /index\.php\?main_page=product_info&products_id=$2&$4 [L]
RewriteRule ^(.*)-c-(.*).html(\?)?(.*)? /index\.php\?main_page=index&cPath=$2&$4 [L]
RewriteRule ^(.*)-m-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=index&manufacturers_id=$2&$4 [L]
RewriteRule ^(.*)-pi-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=popup_image&pID=$2&$4 [L]
RewriteRule ^(.*)-pr-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=product_reviews&products_id=$2&$4 [L]
RewriteRule ^(.*)-pri-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=product_reviews_info&products_id=$2&$4 [L]
# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=info_manager&pages_id=$2&$4
# For dreamscape''s News & Articles Manager
RewriteRule ^news/?$ index\.php\?main_page=news& [L]
RewriteRule ^news/rss.xml /index\.php\?main_page=news_rss& [L]
RewriteRule ^news/archive/? /index\.php\?main_page=news_archive& [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html(\?)?(.*)? /index\.php\?main_page=news&date=$1-$2-$3&$5 [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html(\?)?(.*)? /index\.php\?main_page=news_archive&date=$1-$2&$4 [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html(\?)?(.*)? /index\.php\?main_page=news_comments&article_id=$2&$4 [L]
RewriteRule ^news/(.*)-a-([0-9]+).html(\?)?(.*)? /index\.php\?main_page=news_article&article_id=$2&$4 [L]
# All other pages
# Don''t rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/(\w*).html\?(.*) /index\.php\?main_page=$1&$2 [L]
#RewriteRule ^/(.*).html(\?)? /index\.php\?main_page=$1&$3 [L]
RewriteRule ^/(\w*).html /index\.php\?main_page=$1&$3 [L]
Tags: , ,
Apr 10
zen cart 1.38a 中文版集成了 Ultimate SEO URLs,由于该模块很久没有更新,虽然基本功能尚可,但是会出现很多意想不到的问题,并且所有链接都位于根目录,目录层次不够清晰,不能够满足我们的seo要求.ceon_uri_mapping_3.2.4_for_zc是个很好的选择,那么怎么才能卸载掉Ultimate SEO URLs呢?
Removing Ultimate SEO URLs
INSTRUCTIONS
In Zen Cart administration – Tools – Install SQL Patches paste and execute following SQL queries (optional):
DELETE FROM `configuration_group` WHERE `configuration_group_title` LIKE ‘%SEO%’; DELETE FROM `configuration` WHERE `configuration_key` LIKE ‘%SEO%’; DROP TABLE IF EXISTS seo_cache;
Restore following files from ZenCart installation package:
admin/categories.php  
admin/product.php  
includes/functions/html_output.php
Remove/delete following files:
admin/includes/reset_seo_cache.php  
admin/includes/extra_datafiles/seo.php  
admin/includes/functions/extra_functions/seo.php  
includes/auto_loaders/config.ultimate_seo.php  
includes/classes/seo.install.php  
includes/classes/seo.url.php  
includes/extra_datafiles/seo.php
Ultimate SEO URLs were removed.
简单说明一下,首先在后台工具-–安装sql脚本 中执行上述语句,然后比较替换掉以下三个文件:
admin/categories.php          
admin/product.php          
includes/functions/html_output.php  
然后再把以下7个文件删除:
admin/includes/reset_seo_cache.php      
admin/includes/extra_datafiles/seo.php    
admin/includes/functions/extra_functions/seo.php    
includes/auto_loaders/config.ultimate_seo.php    
includes/classes/seo.install.php    
includes/classes/seo.url.php  
includes/extra_datafiles/seo.php   这样Ultimate SEO URLs就被卸载了。
Tags:
分页: 1/1 第一页 1 最后页 [ 显示模式: 摘要 | 列表 ]