?
Solved

Redirect rule

Posted on 2013-01-17
3
Medium Priority
?
221 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

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…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

650 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