Hi all, this issue hurts my brain.
On many modern sites I see this pattern, but haven't figured out how to do it with modx yet.
Say I have a user who clicks on a link on Facebook with the following url: mysite.com/event/3rf78gh9 they will, with my mod_rewrite rule hit a page more commonly known as
index.php?id=23&eventId=3rf78gh9
This works with the following Rewrite_rule.
RewriteRule ^event/([^/]+)/?$ event/?eventId=$1 [L]
My scenario is of cause a bit more complex then this, and I would really like to be able to also do the following:
index.php?id=24&eventId=3rf78gh9
Which should translate to
mysite.com/event/3rf78gh9/messages
Where id 24 is messages
However i can't figure out how to create that type of mod_rewrite rule, please come up with suggestions for this.
Now being a perfectionist I would also like to have my links generated with the same rules. Eg.
[[~24 &eventId=`3rf78gh9`]]
Is it even possible with modx
Best
Moonkin