WN

WN (https://www.wn.se/forum/index.php)
-   Serversidans teknologier (https://www.wn.se/forum/forumdisplay.php?f=4)
-   -   konvertera .htaccess till ISAPI_REWRITE (https://www.wn.se/forum/showthread.php?t=18945)

Thor 2007-01-28 00:24

håller på och försöker hjälpa en kompis med hans webbutik (osC) och det jag ska få till kräver .htaccess. Tyvärr så är butiken hostad på windows server med stöd för ISAPI_REWRITE

Så till min fråga:

Hur konverterar jag en .htaccess med följande innehåll till ISAPI_REWRITE?
Kod:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /butik/

RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING}
RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING}
RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}
RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING}


Thor 2007-01-29 16:26

Ingen som vet? Det kanske inte går att konvertera en .htaccess till httpd.ini ?? :(

princip 2007-01-29 17:22

Du kan säkert hitta det du behöver på www.isapirewrite.com/docs/


Alla tider är GMT +2. Klockan är nu 03:02.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson