Link to home
Start Free TrialLog in
Avatar of IUAATech
IUAATech

asked on

Global redirect again

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?

Avatar of periwinkle
periwinkle
Flag of United States of America image

Try:

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

ASKER

That didn't work.

This works: RedirectMatch 301 ^/~test/(.*) http://www.windowsserver.com/$1
I misunderstood - my apologies.  Post a note in community support to PAQ/refund this question -- you answered it yourself :)
thanks for trying :-)
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial