Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12263
Latest: alma422
New This Month: 14
New This Week: 6
New Today: 1
Stats
Total Posts: 39423
Total Topics: 6947
Most Online Today: 52
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 31
Total: 31

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

0 Members and 1 Guest are viewing this topic.

Offline diegolyanky

  • SMF Store Customer
  • Newbie
  • *****
  • Posts: 41
    • 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: 14734
    • 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: 41
    • 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: 41
    • 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]Push Notifications by SMFHacks
January 18, 2019, 11:10:41 pm

Invitation System Query by SMFHacks
January 14, 2019, 07:36:06 pm

Transactions stopped working! Help! by Hurkulez
January 14, 2019, 10:08:41 am

[Solved]Credit Transactions not working by Hurkulez
January 14, 2019, 09:45:27 am

COMMUNITY SUITE BRANDING REMOVED by SMFHacks
January 14, 2019, 07:10:14 am

Members Can't create a Category to upload photos to by SMFHacks
January 13, 2019, 09:34:31 am

Tinyportal and Mkportal.Which is better? by SMFHacks
January 08, 2019, 02:16:22 pm

8: Undefined index: shortcuts_mac by marcimila
January 05, 2019, 08:06:57 pm

Category by SMFHacks
January 03, 2019, 11:37:44 pm

Community Suite On Sale $200 by SMFHacks
January 02, 2019, 04:12:12 pm

Powered by EzPortal