![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | redirect based on URL entered I have a website that has some issues depending on what URL a user uses. If they type in http://www.url.com it works fine. If they go to http://url.com it has issues. This is the issue with two URL's on the same IIS instance. How would you do the following? if <URL entered to get here> = "url1.com" go to http://www.url1.com else if <URL entered to get here = "www.url1.com" go to http://www.url1.com else if <URL entered to get here> = "url2.com" go to http://www.url2.com else if <URL entered to get here = "www.url2.com" go to http://www.url2.com Again thinking some kind of asp/aspx page that needs to run in IIS. Any ideas? Thanks. JR |
My System Specs![]() |
| | #2 (permalink) |
| | Re: redirect based on URL entered Slight correction as this would endless loop: if <URL entered to get here> = "url1.com" go to http://www.url1.com/home2.asp else if <URL entered to get here = "www.url1.com" go to http://www.url1.com/home2.asp else if <URL entered to get here> = "url2.com" go to http://www.url2.com/home2.asp else if <URL entered to get here = "www.url2.com" go to http://www.url2.com/home2.asp |
My System Specs![]() |
| | #3 (permalink) |
| | Re: redirect based on URL entered JR wrote: Quote: > I have a website that has some issues depending on what URL a user > uses. If they type in http://www.url.com it works fine. If they go > to http://url.com it has issues. from here... Quote: > This is the issue with two URL's on > the same IIS instance. set the host headers for both URLs in IIS. Andrew |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| prompt function and the last command entered | PowerShell | |||
| Excel Date Entered | Microsoft Office | |||
| I entered wrong information... | Vista installation & setup | |||
| Re: using xp based drive as slave on new vista based computer?? | Vista installation & setup | |||
| Freezes RIGHT AFTER validation key is entered. | Vista installation & setup | |||