簡體   English   中英

子域htaccess重定向到HTTPS URL

[英]sub domain htaccess redirect to HTTPS URL

我一直在嘗試將我的子域buynow.mydomain.info重定向到產品鏈接,即https://www.2checkout.com/checkout/purchase?sid=******&quantity=1&product_id=1

我嘗試了簡單的.htaccess行

Redirect 301 / https://www.2checkout.com/checkout/purchase?sid=******&quantity=1&product_id=1

但它不起作用,它僅重定向到https://www.2checkout.com/checkout/purchase而沒有提及我的產品,因為它忽略了其余的URL ?sid=******&quantity=1&product_id=1

我以為HTTPS鏈接可能有問題,但我無法解決,希望大家能幫助我,謝謝。

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://www.2checkout.com/checkout/purchase?sid=******&quantity=1&product_id=1 [R=301]

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM