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
Solved

Redirect rule

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

790 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