문제

if you hypothetically typed in: http://www.domain.com/Items-Shopping-Shoe-2013

my website needs to see: http://www.domain.com/items.asp?Cc=Shoe-2013

so, I thought this would be pretty simple..

I edited the httpd.ini for helicon Isapi rewrite with this:

RewriteRule ^(.*?.com/)Items-Shopping-([A-Za-z0-9-]+)?$ $1items.asp\?Cc=$2

although patern matches, it doesn't work.

I am a newb to regex expressions and Isapi rewrite..probably pretty obvious :P

도움이 되었습니까?

해결책

Try the following in ISAPI_Rewrite 3 .htaccess:

RewriteBase /
RewriteRule ^Items-Shopping-(.+)$ /items.asp?Cc=$1 [NC,L]

For ISAPI_Rewrite 2 it will be:

RewriteRule /Items-Shopping-(.+) /items.asp\?Cc=$1 [I,L]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top