Using HELICON ISAPI Rewrite & ASP.Net MVC - Url Redirection
2 posts
• Page 1 of 1
Using HELICON ISAPI Rewrite & ASP.Net MVC - Url Redirection
I am using IIS and HELICON ISAPI rewrite.
My Requirement: Redirect 1 market specific sites to new domain.
ex: example.com/anz -> example2.com/anz (should redirect)
example.com/deu -> example.com/deu (should not redirect)
I tried:
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example2.com/$1 [L,R=302]
It redirects, but both the markets.
and again with
RewriteCond %{HTTP_HOST} ^example.com/anz [NC]
RewriteRule ^(.*)$ http://www.example2.com/anz/$1 [L,R=302]
failed to redirect.
and again with escape sequence character
RewriteCond %{HTTP_HOST} ^example.com\/anz [NC]
RewriteRule ^(.*)$ https://example2.com/anz/$1 [L,R=302]
failed to redirect.
Please help me.
My Requirement: Redirect 1 market specific sites to new domain.
ex: example.com/anz -> example2.com/anz (should redirect)
example.com/deu -> example.com/deu (should not redirect)
I tried:
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example2.com/$1 [L,R=302]
It redirects, but both the markets.
and again with
RewriteCond %{HTTP_HOST} ^example.com/anz [NC]
RewriteRule ^(.*)$ http://www.example2.com/anz/$1 [L,R=302]
failed to redirect.
and again with escape sequence character
RewriteCond %{HTTP_HOST} ^example.com\/anz [NC]
RewriteRule ^(.*)$ https://example2.com/anz/$1 [L,R=302]
failed to redirect.
Please help me.
Re: Using HELICON ISAPI Rewrite & ASP.Net MVC - Url Redirect
Hello.
Answered to your Stackoverflow post.
Answered to your Stackoverflow post.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests