Welcome! Log In Create A New Profile

Advanced

rewrite assistance

November 23, 2010 04:41PM
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!
Subject Author Posted

rewrite assistance

daveyfx November 23, 2010 04:41PM

Re: rewrite assistance

António P. P. Almeida November 23, 2010 04:58PM

Re: rewrite assistance

daveyfx November 23, 2010 07:22PM

Re: rewrite assistance

Francis Daly November 23, 2010 07:32PM

Re: rewrite assistance

daveyfx November 23, 2010 11:42PM

Re: rewrite assistance

Francis Daly November 24, 2010 05:48AM

Re: rewrite assistance

Igor Sysoev November 24, 2010 06:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 138
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready