troubleshooting Question

PHP Script for URL Redirect with parameters

Avatar of dauyeung
dauyeungFlag for Canada asked on
9 Comments1 Solution457 ViewsLast Modified:

I need to redirect all requests to one domain and redirect it to another.  However, I need it to redirect with all the parameters.

I can put a php page on a domain.

I have a main domain (e.g. and a short domain (e.g.  

I have recently moved my corporate website into a fully hosted environment.  Previously, we hosted the proprietary CMS.  In my setup, I had IIS forward all requests for to, including all parameters after the domain.

So  IIS would redirect requests for to  It was a wildcard redirect, so it would work for any URL, not just predesignated ones, such as:

Redirect request for: 


Thank You.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros