Welcome! Log In Create A New Profile

Advanced

How to redirect by $_GET variable

Posted by tyanhly 
How to redirect by $_GET variable
February 06, 2012 08:55PM
Hi,

I want to setup virtual host which can redirect request has $_GET variable.

Ex:
the request: "/index.php?image=favicon.ico" will redirect to /images/favicon.ico
the request: "/index.php?script=page1&version=10" will redirect to /script/page1/10.js

I have setup

rewrite "/index.php\?image=(.*) /images/$1

but it dont run.

Please, help me.

Thanks
Re: How to redirect by $_GET variable
February 07, 2012 04:01AM
please
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 118
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