I've an iframe to embed audio which indicates a src such as this...
In the embed level I've an
index.php hearing GET demands however it will obviously never obtain the demands unless of course I actually do some kind of redirect during my .htaccess like so...
RewriteEngine On RewriteRule ^([^/]*)$ index.php?var1=$1 [L]
That makes up about the road schema in order to indicate a
mediaID like this but this really is unscalable for the reason that I can not easily increase the GET params.
I am simply because YouTube &lifier Vimeo indicate a mediaID however also allow GET params after that.
My understanding is the fact that a rewrite is what you want with this but possibly I am mistaken. I certainly prefer to pass the mediaID like a GET param and skip writing each param I'll ever use within the .htaccess but that's not the way in which YouTube &lifier Vimeo go, they appear to possess found a scalable method of doing it.
Exactly why is their approach of pointing towards the mediaID much better than passing the url like a GET? I'm guessing their approach is nice practice, possibly I am presuming to much.
What's the easiest method to accomplish an immediate connect to a media ID and support the GET params inside a scalable way.
If you wish to support the existing query string after your rewrite, only use the [cde] flag in your rule:
Then, additionally to
RewriteRule ^([^/]*)$ index.php?var1=$1 [QSA,L]
, you'll receive whichever parameters were passed in included in the original request.