I have an old url www.mydomain.com/customer/1. I changed that server to ww2 and it displays fine at ww2.mydomain.com/customer/1. On my new IIS 8.5 www server how can I put in a rewrite rule so if the user goes to www.mydomain.com/customer/1 they will redirect to ww2.mydomain.com/customer/1. I have tried numerous patterns in the Url Rewrite 2.0 module and nothing seems to work. All other www requests I do not want redirected, those stay on my new www server.
1
There are 1 best solutions below
Related Questions in URL-REWRITE-MODULE
- IIS Rewrite Module exclude bots but allow GoogleBot
- ASP.NET Core Rewrite not working as expected
- UrlRewrite module for .NET Core using Kestrel
- .NET Core 6 URL Redirect virtual path
- How to URL Rewrite in IIS to URL encode incoming requests that have unencoded characters?
- Web.config Url Rewrite Username (Php)
- IIS rewrite rule to redirect to new domain with query string value passed
- SSL secure WCF message security service hosted on IIS
- URL Rewrite Module Error. HTTP Error 500.52
- Evaluation when defining multiple Precondition in the IIS URL Rewrite module
- Rewrite rules not loading css/font/img for ibm http webserver
- Canonical URL and PDF with IIS rewrite module
- how to use Sec-Fetch-Site request header in a condition of IIS Rewrite rule
- IIS web.config redirect pages from one domain to another using specifi paths
- file getting 404 error due index.php in laravel 8 application deployed in IIS 10 windows server 2019
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I you want to redirect a single path,
/customer/1, then you should add this toWeb.configon thewww.mydomain.comserver:If you wish to include additional paths, you can fiddle with the RegEx specified in the
<match url="^customer/1$" />tag.