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

My web page is located at maxpavlov.com/interesting/fileupload/

Can I use URL Rewrite module in IIS to have a user address bar show file.maxpavlov.com every time he visits the aforementioned url?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

URL Rewrite can't change the URL displayed in the address bar, per se. However, if you linked to file.maxpavlov.com (rather than maxpavlov.com/interesting/fileupload/), you could use URL Rewrite to rewrite that request to maxpavlov.com/interesting/fileupload/:

<rule name="CustomRule" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
  <match url="file.maxpavlov.com" />
  <action type="Rewrite" url="maxpavlov.com/interesting/fileupload/{R:0}" />
</rule>
share|improve this answer
    
So it is one way around - not the other =) Thanks. –  Maxim V. Pavlov Mar 30 '12 at 21:09
    
You could always 302 or 301 redirect maxpavlov.com/interesting/fileupload/ to file.maxpavlov.com and then use URL Redirect to rewrite that to your hidden file area ;-) –  Chris Anton Mar 31 '12 at 1:23

Your Answer

 
discard

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.