Parameter Match
6 posts
• Page 1 of 1
Parameter Match
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Parameter Match
Hello,
ISAPI_Rewrite3 has slightly different syntax. Please, try:
Regards
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
Re: Parameter Match
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Parameter Match
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
Logging issues are described in FAQ - http://www.helicontech.com/forum/10648-FAQ.html
Re: Parameter Match
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!!!
its better after correction
Thanks for your help!!!
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests