Solved

Redirect rule

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OWA 2010 both internal, external not working 7 91
Reading the Web.Config using IIS 7.5? 4 63
IIS redirect 1 98
IIS Windows Server FTP 5 49
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…

738 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