Title: Plugin RedirectURL Not Working with HTTPS
Last modified: July 24, 2020

---

# Plugin RedirectURL Not Working with HTTPS

 *  Resolved [duom](https://wordpress.org/support/users/duom/)
 * (@duom)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirecturl-not-working-with-https/)
 * Hi
 * The plugin don’t seem to work with HTTPS only setup. I had my website’s port 
   80 closed off for security reason so only https will work. Every time I submitted
   a credit card payment, I will get a Bad Request error because the redirectURL
   in class-wc-eway-api.php is forced to use http.
 * Line 125
 *     ```
       'RedirectUrl'     => str_replace(
         'https:', 'http:', add_query_arg(
           array(
             'wc-api'    => 'WC_Gateway_EWAY',
             'order_id'  => $order_id,
             'order_key' => $order_key,
             'sig_key'   => md5( $order_key . 'WOO' . $order_id ),
           ), home_url( '/' )
         )
       ),
       ```
   
 * I tried removing the str_replace function so the redirectURL is https instead
   of http, but I just ended up with a 504 timeout instead.
 * Is this a bug? Does the redirectURL has to be http instead of https? Can it work
   with https ?
 * Many Thanks
    – Duo

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Mike Straw](https://wordpress.org/support/users/mikestraw/)
 * (@mikestraw)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirecturl-not-working-with-https/#post-13182225)
 * Hi [@duom](https://wordpress.org/support/users/duom/) ,
 * There is a known bug in the extension. I don’t have an estimate for when it will
   be fixed, but our developers are aware and will fix it in a future release.
 * I’ve added this particular use case to the list to that they’re aware of the 
   implications.
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirecturl-not-working-with-https/#post-13209052)
 * Hi [@duom](https://wordpress.org/support/users/duom/) – As Mike mentioned, this
   is a current, open issue: #58
    The repository is private, so you won’t be able
   to see it, but I’m posting the link for posterity: [https://github.com/woocommerce/woocommerce-gateway-eway/issues/58](https://github.com/woocommerce/woocommerce-gateway-eway/issues/58)
 * I’m going to go ahead and set this to resolved, but I would suggest keeping an
   eye out on the changelog and updating as soon as that’s available.
    Please feel
   free to reply to this thread at any time if you still have issues once that’s
   released.
 * Thanks!
    – Joey

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin RedirectURL Not Working with HTTPS’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-gateway-eway/assets/icon-256x256.png?rev=3231743)
 * [Eway Payments for Woo](https://wordpress.org/plugins/woocommerce-gateway-eway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-gateway-eway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-gateway-eway/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-gateway-eway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-gateway-eway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-gateway-eway/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirecturl-not-working-with-https/#post-13209052)
 * Status: resolved