Solved

Redirect rule

Posted on 2013-01-17
3
218 Views
Last Modified: 2013-01-23
I have a website
www.mywhateversite.com

I used to have a test version of the blog
www.mywhateversite.com/blog2

I wasn't careful and google picked it up. I made www.mywhateversite.com/blog (without 2)

And now I want to create a rule in the IIS7 that would redirect to the same exact url address, but without the 2.

So, www.mywhateversite.com/blog2/my-blog-article
would redirect to www.mywhateversite.com/blog/my-blog-article

Or maybe I can somehow get it done through godaddy?


Please help!!!
0
Comment
Question by:vituxa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Expert Comment

by:gaurav05
ID: 38791920
0
 
LVL 1

Accepted Solution

by:
vituxa earned 0 total points
ID: 38793014
This is the answer for what I was looking for:

<rewrite>
            <rules>              

              <rule name="RedirectToBlog" stopProcessing="true">
                <match url="^blog2/?$|^blog2/(.*)$" />
                <conditions />
                <serverVariables />
                <action type="Redirect" url="blog/{R:1}" />
              </rule>
             
            </rules>
        </rewrite>
0
 
LVL 1

Author Closing Comment

by:vituxa
ID: 38809113
this is EXACTLY what I was looking for, and I found it elsewhere. None of the experts could help.
0

Featured Post

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question