Home › Forums › Calendar Products › Events Calendar PRO › How to change default past events page url
- This topic has 11 replies, 3 voices, and was last updated 10 years, 5 months ago by
Support Droid.
-
AuthorPosts
-
October 19, 2015 at 3:42 am #1015736
xrossglobalgroup
ParticipantHi Team,
I have to change the Past Event URL from https://example.com/events/?tribe_event_display=past to https://example.com/past-events.
I have read most of forum and discussion on previous. also, I have tried one plugin “Event Rocket” which you suggested on https://theeventscalendar.com/support/forums/topic/past-event-url/ but I can’t found any solution.
I hope you come up with my solutions.
Thanks in advance.
October 19, 2015 at 3:45 am #1015737xrossglobalgroup
ParticipantThis reply is private.
October 19, 2015 at 2:43 pm #1015984Brook
ParticipantHowdy again Xross,
If you are interested in redirecting form one to the other then you could use Apache redirects, or any WP redirect plugin. Enter the two URLs, the one you want to redirect from and the one you want to redirect to. You’re done!
If you instead want users to stay on the /past-events/ page and not get forwarded to the current one, then you will need to edit the WP Rewrite rules. The most straightforward way would be to use add_rewrite_rule() to add the rule. This will /past-events/ to behave like the /events/?tribe_event_display=past page. However, every section of our plugin will still link to the original URL. If you wish to stop this, the only tenable way would again be a redirect. Only in this case you would want to forward from the old URL to your new /past-events/ one. There might be a few complications along the way if you choose to add this optional final redirect.
There would be your two methods of going about this. Does that answer your question?
Cheers!
– Brook
October 19, 2015 at 10:37 pm #1016101xrossglobalgroup
ParticipantThis reply is private.
October 21, 2015 at 7:18 am #1016548Brook
ParticipantThis reply is private.
October 21, 2015 at 10:09 pm #1016777xrossglobalgroup
ParticipantThis reply is private.
October 23, 2015 at 6:48 am #1017230Brook
ParticipantThank you for clarifying. What is the code you are using for add_rewrite_rule ?
- Brook
October 23, 2015 at 7:00 am #1017236xrossglobalgroup
ParticipantThis reply is private.
October 23, 2015 at 7:05 am #1017272xrossglobalgroup
ParticipantThis reply is private.
October 23, 2015 at 7:38 am #1017291xrossglobalgroup
ParticipantThis reply is private.
October 27, 2015 at 12:01 am #1018775Brook
ParticipantThis reply is private.
November 11, 2015 at 6:05 am #1024136Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to change default past events page url’ is closed to new replies.
