Parameter Match

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 3
Joined: 27 Jun 2014, 12:17

Parameter Match

27 Jun 2014, 12:20

Hi,

I need to do several static redirect on Pages with Parameter.

I tried

RewriteRule /page\?parameter=1 /otherpage [R=301]

but the regex does not match

www.test.com/page?parameter=1

What is wrong?

Thanks in advance

Maje

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Parameter Match

28 Jun 2014, 17:58

Hello,

ISAPI_Rewrite3 has slightly different syntax. Please, try:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_TRING} ^parameter=1$
RewriteRule ^page$ /otherpage? [NC,R=301,L]



Regards

User avatar
Posts: 3
Joined: 27 Jun 2014, 12:17

Re: Parameter Match

01 Jul 2014, 08:31

Hi,

sorry, it stil does not work.

To make it less abstract, here ist the configuration:

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.104

RewriteEngine on

#SEO
RewriteRule /producSEOpage.html /default.aspx?c=shop&pg=13&n=&id=2

#Redirects
#RewriteCond %{QUERY_TRING} ^parameter=1$
#RewriteRule ^/page$ /otherpage? [NC,R=301,L]

RewriteCond %{QUERY_TRING} ^c=uebersicht&pg=41&n=30$
RewriteRule ^/default.aspx$ /default.aspx?c=uebersicht&pg=41? [NC,R=301,L]

Sorry for not undersatnding - your doing me a great favour!

Regards

maje

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Parameter Match

01 Jul 2014, 17:46

IT's time to get to the logs. Please, run a testing request and provide us with the rewrite.log.
Logging issues are described in FAQ - http://www.helicontech.com/forum/10648-FAQ.html

User avatar
Posts: 3
Joined: 27 Jun 2014, 12:17

Re: Parameter Match

02 Jul 2014, 07:35

ok, got it: in your post you made a typo: QUERY_TRING - i copied it, nothing worked.
its better after correction ;-)

Thanks for your help!!!

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: Parameter Match

02 Jul 2014, 13:17

dang it. sorry.

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests