Global redirect again

Posted on 2006-03-30
Medium Priority
Last Modified: 2010-03-04
I am using a global redirection on apache to redierct everything from apache to windows.

I am using the following code:

RedirectMatch 301 ^/~?(.*) http://windowsserver/$1

This gives me the following result:

redirects www.some_site.com/~test/* to www.windowsserver.com/test/*

I need something that redirects me to www.windowsserver.com/* without going to the folder test.

How can it be done?

Question by:IUAATech
  • 2
  • 2
LVL 15

Expert Comment

ID: 16335352

RedirectMatch 301 ^/(.*) http://www.windowsserver.com/$1

Author Comment

ID: 16335460
That didn't work.

This works: RedirectMatch 301 ^/~test/(.*) http://www.windowsserver.com/$1
LVL 15

Expert Comment

ID: 16335515
I misunderstood - my apologies.  Post a note in community support to PAQ/refund this question -- you answered it yourself :)

Author Comment

ID: 16335531
thanks for trying :-)

Accepted Solution

GranMod earned 0 total points
ID: 16368759
Closed, 250 points refunded.
The Experts Exchange
Community Support Moderator of all Ages

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month14 days, 23 hours left to enroll

839 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