Solved

Redirect rule

Posted on 2013-01-17
3
211 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
  • 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now