Results 1 to 3 of 3

Thread: .htaccess => lighttpd config

  1. #1
    Join Date
    Jul 2010
    Posts
    1

    Default .htaccess => lighttpd config

    I'm in need of "translating" the following .htaccess file to code for lighttpd

    Code:
    RewriteRule ^product/(.*).html$ products.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
    
    RewriteRule ^review/(.*).html$ reviews.php?q=$1&rewrite=1&%{QUERY_STRING} [L]
    
    RewriteRule ^merchant/$ merchants.php
    RewriteRule ^merchant/(.*)/$ search.php?q=merchant:$1:&rewrite=1%{QUERY_STRING} [L]
    RewriteRule ^merchant/(.*)/(.*).html$ search.php?q=merchant:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
    
    RewriteRule ^category/$ categories.php
    RewriteRule ^category/(.*)/$ search.php?q=category:$1:&rewrite=1%{QUERY_STRING} [L]
    RewriteRule ^category/(.*)/(.*).html$ search.php?q=category:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
    
    RewriteRule ^brand/$ brands.php
    RewriteRule ^brand/(.*)/$ search.php?q=brand:$1:&rewrite=1%{QUERY_STRING} [L]
    RewriteRule ^brand/(.*)/(.*).html$ search.php?q=brand:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
    
    RewriteRule ^search/(relevance|priceAsc|priceDesc|rating)/(.*)/$ search.php?sort=$1&q=$2&rewrite=1&log=1&%{QUERY_STRING} [L]
    RewriteRule ^search/(relevance|priceAsc|priceDesc|rating)/(.*)/(.*).html$ search.php?sort=$1&q=$2&page=$3&rewrite=1&log=1&%{QUERY_STRING} [L]
    Any suggestions? Thanks

  2. #2
    Join Date
    Jul 2007
    Location
    127.0.0.1
    Posts
    392

    Default

    Quote Originally Posted by spaldthin View Post
    Any suggestions? Thanks
    Yep...

    Code:
    http://redmine.lighttpd.net/wiki/1/MigratingFromApache
    http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite
    Use the force.

  3. #3
    Join Date
    May 2009
    Posts
    1

    Exclamation 新加的空白文章1

    这是新加的空白文章1,可以在ubb可视化编辑器中,添加和修改文章内容。

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •