Title: Return URL error
Last modified: August 30, 2016

---

# Return URL error

 *  [Andykrish](https://wordpress.org/support/users/andykrish/)
 * (@andykrish)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/return-url-error-1/)
 * Hello,
 * I installed the plugin and everything seems to be working except for the return
   URL from the gateway where I get a 404 not found error.
 * The callback URL is mydomain.com/wc-api/SarkMigs?…..
 * Could you kindly help me sort this out ?
 * [https://wordpress.org/plugins/sark-migs/](https://wordpress.org/plugins/sark-migs/)

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

 *  [rkvisit](https://wordpress.org/support/users/rkvisit/)
 * (@rkvisit)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/return-url-error-1/#post-6770093)
 * are you using HTTPS (i mean using SSL in your site)?? then the problem may be
   the return URL is a HTTP one and your site doesn’t allow it to access!.This was
   the issue in my case and i edited the line where it change URL in to http and
   solved it.
 *  [engynazmy](https://wordpress.org/support/users/engynazmy/)
 * (@engynazmy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/return-url-error-1/#post-8401338)
 * Hello,
 * I’m facing exactly this same problem, I’m still developing my site on a localhost
   so no am not using HTTPS yet. It seems to be not working on my theme only as 
   I’ve tried it on another default WP installation using ‘storefront’ theme & it
   returns correctly to “[http://localhost/localfolder1/checkout/order-received/104/?key=wc_order_581e359340cf3&#8221](http://localhost/localfolder1/checkout/order-received/104/?key=wc_order_581e359340cf3&#8221);
   while in my theme it returns to “[http://localhost/localfolder2/wc-api/SarkMigs?vpc_3DSXID=&#8230](http://localhost/localfolder2/wc-api/SarkMigs?vpc_3DSXID=&#8230);.”
 * btw My site is bilingual using polylang.
 * Any help is much appreciated. Thanks in advance.
    -  This reply was modified 9 years, 6 months ago by [engynazmy](https://wordpress.org/support/users/engynazmy/).
 *  [engynazmy](https://wordpress.org/support/users/engynazmy/)
 * (@engynazmy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/return-url-error-1/#post-8430338)
 * Hi,
 * I got this solved by changing the code in line 42
    from: $this->callback = str_replace(‘
   https:’, ‘http:’, home_url( ‘/wc-api/SarkMigs’ ) ); to: $this->callback = str_replace(‘
   https:’, ‘http:’, get_site_url().’/wc-api/SarkMigs’);
 * Hope this could be helpful for somebody,
    Thanks,

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

The topic ‘Return URL error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sark-migs_ccb3bb.svg)
 * [Sark Migs](https://wordpress.org/plugins/sark-migs/)
 * [Support Threads](https://wordpress.org/support/plugin/sark-migs/)
 * [Active Topics](https://wordpress.org/support/plugin/sark-migs/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sark-migs/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sark-migs/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [engynazmy](https://wordpress.org/support/users/engynazmy/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/return-url-error-1/#post-8430338)
 * Status: not resolved