简体   繁体   中英

Helicon ReWrite rule for static pages

What is the Helicon rewrite cond /rule i need to use to redirect this one static page:

/page.asp?pg=ovens

to

http://www.rdo.co.uk/products.asp?id=134&rs=1&sel_supplier=280

This should work for you:

RewriteEngine On
RewriteCond %{THE_REQUEST} ^(GET|POST)\ /page\.asp\?pg=ovens\ HTTP
RewriteRule ^ http://www.rdo.co.uk/products.asp?id=134&rs=1&sel_supplier=28 [R,L]

It will check the parameter after pg and if it is ovens then it will redirect it to the page you specified, if it doesn't then it will skip it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM