Hi all,
I'm trying to add in a rewrite rule that will take this string and just do a redirect to /
/preview.php?controllerName=channel&id=2
Since the query string can vary, how would I craft my rewrite appropriately to do this? I've tried a few variations of the following, but all it does is remove the "preview.php" portion of the string, leaving the "?controllerName=channel&id=2"
rewrite ^/preview.php(.*) / permanent;
Essentially I just watch to match against "preview.php" and redirect to the index portion of the site.
Thanks!