求lighttp服务器的伪静态规则设置

用于收藏精华贴子、网友共享的资料等。可以回复,不能发新贴。

版主: daimadaquan

版面规则
本版面不能发新贴,可以回复

求lighttp服务器的伪静态规则设置

帖子异常代码 » 2010-04-26 19:50

求lighttp服务器的伪静态规则设置
异常代码
普通会员
普通会员
 
帖子: 31
注册: 2009-10-25 15:50
地址: http://www.ycdm.org

Re: 求lighttp服务器的伪静态规则设置

帖子异常代码 » 2010-04-27 23:00

哈哈 解决了 规则如下

首发我自己的博客 http://www.ycdm.org/net/zencart/lighttp ... eijingtai/

url.rewrite-once = (
"^/(.*)-p-(.*)\.html(\?(.*))?$" => "/index.php?main_page=product_info&products_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",
"^/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"
)
异常代码
普通会员
普通会员
 
帖子: 31
注册: 2009-10-25 15:50
地址: http://www.ycdm.org

Re: 求lighttp服务器的伪静态规则设置

帖子abcde » 2010-04-28 14:50

不用写那么多
^/(.*)\.html(\?(.*))?$ /index.php?main_page=$1&$3
abcde
新手上路
新手上路
 
帖子: 5
注册: 2010-04-24 13:16

Re: 求lighttp服务器的伪静态规则设置

帖子aitd001 » 2010-10-09 15:57

人才啊,这是很强大的功能哦!
不过希如果这位仁兄能够提供以上的文件下载就更好了!谢谢,回去找个时间试试!
测试成功了一定要用到我的网站上:Replica Watches Sale
aitd001
中级会员
中级会员
 
帖子: 66
注册: 2009-04-28 10:29
地址: 北京市海淀区


回到 精华共享

在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客