fra apache2 til lighttpd - omskrive htaccess linjer til lighttpd.conf
Hejsa Jeg har lidt problem med at få disse linjer oversat fra .htaccess til lighttpd.confRewriteRule ^as4_seositemap.xml$ modules/pm_advancedsearch4/seositemap.xml [L]
RewriteCond %{QUERY_STRING} !^controller=products-comparison [NC]
RewriteRule ^([a-z]{2})?/?s/([0-9]+)/([a-zA-Z0-9/_-]*) index.php?fc=module&module=pm_advancedsearch4&controller=advancedsearch4&isolang=$1&id_seo=$2&seo_url=$3 [QSA,L]
RewriteCond %{QUERY_STRING} ^isolang=([a-z]{2})&id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*).*p=([0-9]+)$
RewriteRule ^advancedsearch4.php /%1/s/%2/%3?p=%4 [R=301,L]
RewriteCond %{QUERY_STRING} ^isolang=([a-z]{2})&id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*)
RewriteRule ^advancedsearch4.php /%1/s/%2/%3? [R=301,L]
RewriteCond %{QUERY_STRING} ^id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*).*p=([0-9]+)$
RewriteRule ^advancedsearch4.php /s/%1/%2?p=%3 [R=301,L]
RewriteCond %{QUERY_STRING} ^id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*)
RewriteRule ^advancedsearch4.php /s/%1/%2? [R=301,L]
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
Her er mit bedste forsøg:
url.rewrite-if-not-file = (
#RewriteRule ^as4_seositemap.xml$ modules/pm_advancedsearch4/seositemap.xml [L]
"^/as4_seositemap\.xml$" => "/modules/pm_advancedsearch4/seositemap.xml",
#RewriteCond %{QUERY_STRING} !^controller=products-comparison [NC]
#RewriteRule ^([a-z]{2})?/?s/([0-9]+)/([a-zA-Z0-9/_-]*) index.php?fc=module&module=pm_advancedsearch4&controller=advancedsearch4&isolang=$1&id_seo=$2&seo_url=$3 [QSA,L]
"^/([a-z]{2})?/?s/([0-9]+)/([a-zA-Z0-9/_-]*)" => "/index.php?fc=module&module=pm_advancedsearch4&controller=advancedsearch4&isolang=$1&id_seo=$2&seo_url=$3",
#RewriteCond %{QUERY_STRING} ^isolang=([a-z]{2})&id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*).*p=([0-9]+)$
#RewriteRule ^advancedsearch4.php /%1/s/%2/%3?p=%4 [R=301,L]
#RewriteCond %{QUERY_STRING} ^isolang=([a-z]{2})&id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*)
#RewriteRule ^advancedsearch4.php /%1/s/%2/%3? [R=301,L]
#RewriteCond %{QUERY_STRING} ^id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*).*p=([0-9]+)$
#RewriteRule ^advancedsearch4.php /s/%1/%2?p=%3 [R=301,L]
#RewriteCond %{QUERY_STRING} ^id_seo=([0-9]+)&seo_url=([a-zA-Z0-9/_-]*)
#RewriteRule ^advancedsearch4.php /s/%1/%2? [R=301,L]
#RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
"^images_ie/?([^/]+)\.(jpe?g|png|gif)$" => "js/jquery/plugins/fancybox/images/$1.$2"
)
Jeg håber en eller anden kan hjælpe mig videre
På forhånd tak