[eluser]Unknown[/eluser]
The title probably isn't very clear, let me try to explain what I am trying to do.
I've got my site running throw amazon cloud and they apparently can't redirect with a querystring. What I was doing in dev was doing something like site.com?mv-1111 and using javascript to grab mv-1111 to in turn launch a modal for a particular video. The goal here is to deep link some modals. But again, amazon won't redirect to a querystring so I need to come up with a route to help.
These modals can be opened on any page and when a modal gets shared it needs to go back to the actually page it was launched on and in turn launch the modal.
Examples:
site.com/games/pacman?mv-1111 or site.com?mv-1111 (this one's controller/method is main/index)
I am also currently using
Code:
$route['(en-us|en-gb|fr-fr|it-it|de-de|es-es|ru|pl|ja)\/?(.*)'] = '$2';
which is working as expected.
What I am trying to do is as followed since I can't have the querystring:
site.com/games/pacman/mv-1111 or site.com/mv-1111
So:
Code:
site.com/games/pacman/mv-1111 executes games/pacman with a querystring of mv-1111
site.com/mv-1111 executes main/index with a querysting of mv-1111
What I tried:
Code:
// quite a few variations of
$route['(.*)/mv-(.*)'] = "$1?mv-$2";
Any direction would be helpful at this point. If I am not clear on what I am trying to do, please let me know.