lighttpd forum migration > New to lighty and the rewrite needs to be done...

Posted by Bjoern Dietzel
on 18.01.2008 18:24
Hi everybody,

its done, the move from apache to lighty 1.5.
But now i need to get the rewrite done as quick as possible
that i can but the store back online. The problem is i have
no clue about the rewrite stuff.

Ok, here is my configuration:

server.document-root  = "/webroot/vhosts/"

$HTTP["host"] =~ "(^|\.)paradise-bodies\.com$" {
server.document-root = "/webroot/vhosts/paradise-bodies.com/docs"
}


vhosts
  |
  |
  |---paradise-bodies.com
        |
        |---docs
              |
              |---Shop - here is the htaccess




htaccess:

RewriteBase /shop
# Onlie use Rewrite Engine, if Directory or File not exist
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]

# Rule: Product Info
RewriteRule ^(.*)products\/(.+)\.html$ 
product_info.php?bluegatemapto=product&linkurl=$2 [qsappend,L]

# Rule: Content
RewriteRule ^(.*)content\/(.+)\.html$ 
shop_content.php?bluegatemapto=content&linkurl=$2 [qsappend,L]

# Rule: Category Listing
RewriteCond %{REQUEST_FILENAME} !\.html$
RewriteRule ^(.*)$ index.php?bluegatemapto=category&linkurl=$1 
[qsappend,L]


I shall be delighted if somebody can to it for me.
Posted by Bjoern Dietzel
on 23.01.2008 15:45
Hm, if nobody can help me i need to go back to apache :-(