Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi!
My customer has bought another company and want to redirect all traffic to his webpage from the old company. Im trying to use urlRewrite to maintain the index from google (301)
< add name="gasol" redirectMode="Permanent" redirect="Domain" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" virtualUrl="http://www.sunwind.se/sidor/gasolutrustning.html" destinationUrl="http://www.swexergon.se/produkter-foer-fritidshuset.aspx" />
<
add name="gasol"
redirectMode="Permanent"
redirect="Domain"
ignoreCase="true"
rewriteUrlParameter="IncludeQueryStringForRewrite"
virtualUrl="http://www.sunwind.se/sidor/gasolutrustning.html"
destinationUrl="http://www.swexergon.se/produkter-foer-fritidshuset.aspx" />
But when I try this nothing happens. Is the syntax wrong?
Tried it on another website and there it works. Think it has something to do with the host..
Another question: If I want to rewrite an entire domain like: www.olddomainname.com -> www.newdomainname.com
The rule should be written so that it takes all old adresses (www.olddomainname.com/test.aspx) and redirects to the new (www.newdomainname.com/test.aspx).
Is that possible?
If you have access to your IIS installation, it could be handled from here?
Just use the HTTP-redirection feature.
/Thomas
Thanks, but i managed to solve it in the urlrewriting.config like this:
<add name="oldomain_to_new_domain" redirectMode="Permanent"redirect="Domain" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" virtualUrl="http://www.olddomain.com/(.*)" destinationUrl="http://www.newdomain.se/$1" />
redirectMode="Permanent"redirect="Domain"
virtualUrl="http://www.olddomain.com/(.*)"
destinationUrl="http://www.newdomain.se/$1" />
Nice! :-D
Think I'll use that myself instead of the IIS handling! Thanks for the tip.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Using urlRewriting.config
Hi!
My customer has bought another company and want to redirect all traffic to his webpage from the old company. Im trying to use urlRewrite to maintain the index from google (301)
But when I try this nothing happens. Is the syntax wrong?
Tried it on another website and there it works. Think it has something to do with the host..
Another question: If I want to rewrite an entire domain like: www.olddomainname.com -> www.newdomainname.com
The rule should be written so that it takes all old adresses (www.olddomainname.com/test.aspx) and redirects to the new (www.newdomainname.com/test.aspx).
Is that possible?
If you have access to your IIS installation, it could be handled from here?
Just use the HTTP-redirection feature.
/Thomas
Thanks, but i managed to solve it in the urlrewriting.config like this:
Nice! :-D
Think I'll use that myself instead of the IIS handling! Thanks for the tip.
is working on a reply...