RewriterRule not working for alias domain name

  • Thread starter Mahesh K. Anajni
  • Start date
M

Mahesh K. Anajni

Hi

We are working on a multilingual website. it has five URL (one
original and four alias) for all the five languages. we are using
RewriterRule in web.config to rewrite the Url. All this working fine
on my local machine but when we have upload it on live we are facing a
problem. that RewriteRule doesn't working for the alias name. it means
when we request any page with alias name RewriterRule not works
properly

Example :

main website is Webcarhire.com
and alias is webcarhire.fr

when I request a page webcarhire.com/contactus.htm - the RewriterRule
works fine

but

when i request a page webcarhire.fr/contactus.htm - the RewriterRule
is not working

Note : I have assign the worker process to .htm and .html page in ISS
and also
I have add following rule in web.config
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>[^\.fr].+\.htm</LookFor>
<SendTo>~/BlankPage.aspx</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>




Please let me know if any one have solved this problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,818
Latest member
Brigette36

Latest Threads

Top