Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to configure my website to redirect to a specific URL with a specific port.

For example, http://www.example.com should redirect to http://www.example.net:9090.

I configured the http redirect module in IIS 7 manager, but it always redirects to www.example.net without any specific port. How can I achieve this?

share|improve this question

1 Answer 1

If you write “http://www.example.com” in a browser address bar, the default port used will always be 80.

For this question, I suggest you add a new website for this host on port 80 where you add a redirect in a page to the final page (the other port).

Try using a meta refresh tag in a html page to redirect to an address: <meta http-equiv="refresh" content="0;url=example.net:9090" />.

share|improve this answer
My problem is now when i get in to www.xxx.com, it only redirect me to www.yyy.com. What I expected is redirect to www.yyy.com:9090. –  Kelvin Go Dec 26 '12 at 1:59
please use meta refresh tag in a htm page to redirect to a address: <meta http-equiv="refresh" content="0;url=yyy.com:2222"; /> –  Paul Dec 26 '12 at 6:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.