Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 12356
Latest: Hermankidd
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 39780
Total Topics: 7006
Most Online Today: 27
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 40
Total: 40

Author Topic: Rewrite rule for IPN  (Read 554 times)

0 Members and 1 Guest are viewing this topic.

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Rewrite rule for IPN
« on: November 26, 2018, 10:22:38 am »
Hi:


I have upgraded from SMF 1.1.x to 2.0.x and updated the SMFSTORE to the latest version.
Behold, the subscriptions created in version 1.x of SMFStore point to storeipn.php and the new version works on storeipn2.php

Now, I have been able to modify the URL of the new IPN in PayPal, but this will only work with the "new subscriptions" and will not work with the subscriptions already created in the previous version.

I need to create a rule in my apache (I have a dedicated server, it is not rented hosting) so I think I would need to redirect from my .htaccess so that all requests sent to storeipn.php are redirected to storeipn2.php

I have read about using the method $ POST (307) in the rule, but I do not know how it would be.

Could you help me with this problem? ... Since I can not modify the notifications of the subscriptions already created.

Of course, thank you!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14904
    • View Profile
Re: Rewrite rule for IPN
« Reply #1 on: November 26, 2018, 10:56:05 am »
Easy thing you can do copy storeipn2.php and rename it storeipn.php
and that will work fine.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Re: Rewrite rule for IPN
« Reply #2 on: November 26, 2018, 10:58:55 am »
Easy thing you can do copy storeipn2.php and rename it storeipn.php
and that will work fine.

Awesome !!!

You rule !!

Thanks Admin !!

Offline Engram

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Rewrite rule for IPN
« Reply #3 on: December 18, 2018, 09:39:41 am »
A simple rename like that doesn't screw up anything else in the long run, right?

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 42
    • View Profile
Re: Rewrite rule for IPN
« Reply #4 on: December 18, 2018, 10:01:49 am »
A simple rename like that doesn't screw up anything else in the long run, right?


No, my friend. Do it, it has worked for me and in fact, it works perfectly well. ;)



 

+- Recent Topics

[Mod]Login Menu Button by SMFHacks
July 05, 2019, 03:26:24 pm

Update by SMFHacks
June 19, 2019, 10:58:25 am

About Comments Approval by ajac63
June 12, 2019, 07:48:52 pm

Pretty Urls extras by SMFHacks
June 06, 2019, 12:14:53 pm

About using chmod to secure files by ajac63
June 05, 2019, 04:02:28 am

Bulk upload image problem by SMFHacks
June 01, 2019, 07:24:00 pm

About Watermark Options by ajac63
May 30, 2019, 05:25:39 pm

Why PayPal only by ajac63
May 30, 2019, 04:20:47 pm

Seller ToU not showing by ajac63
May 29, 2019, 01:59:24 am

Not happy by ajac63
May 28, 2019, 06:37:58 pm

Powered by EzPortal