We help IT Professionals succeed at work.

Global redirect again

IUAATech
IUAATech asked
on
Medium Priority
279 Views
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?

Comment
Watch Question

CERTIFIED EXPERT

Commented:
Try:

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

Author

Commented:
That didn't work.

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

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

Author

Commented:
thanks for trying :-)
Commented:
Closed, 250 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.