Support

Home Forums Event Espresso Premium Another go at permalinks

Another go at permalinks

Posted: December 19, 2013 at 1:41 am

Viewing 1 reply thread


emarienborg

December 19, 2013 at 1:41 am

Hello, EE staff and community!

All my events get ugly permalinks, like this:
http://sitename.no/activities/?regevent_action=register&event_id=87

This leads to several problems. The biggst one is that whenever someone posts an event link on facebook, Facebook just grabs the Open Graph content of http://sitename.no/activities/, and skips the rest of the url, resulting in a general title and description of the event in the Facebook feed.

So, I tried searching the EE forum, and as far as I could see, there is no real solution to this in the EE plugin as of now. First of all, I hope I haven’t missed anything?

Secondly, I figured I would have a go at getting around this, but even though I think my idea should work, it doesn’t.

The idea was to add some Rewriterules, so that whenever a user enters http://sitename.no/activityinfo/87, the system would magically interpret that as http://sitename.no/activities/?regevent_action=register&event_id=87. (I would also have to alter all the templates, making sure that the pretty url is what is outputted everywhere in the event listings etc.)

I have made a couple of attempts, basically based on this StackExchange approach, but without luck. I can’t get the rewrite rule to work, and I’m not sure why.

I’m not a very experienced rewriterule guy, so I thought I would ask the EE staff and EE community for help. Has anyone else tried this and made it work? Is there any reason why it wouldn’t work, so I can just stop trying? Does anyone else get the idea, and are you able to make it work?

Thanks in advance 🙂


Dean

December 19, 2013 at 3:21 am

Hi,

I can’t speak for the community, but I have not seen anything like this attempted before.

Currently the best way to obtain “pretty” permalinks is to make use of the Post feature and use those as a basis for events or event links.

Event Espresso 4.0 is based on true custom post types so this will no longer be an issue with that version.

Viewing 1 reply thread

The support post ‘Another go at permalinks’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso