Global redirect again

Posted on 2006-03-30
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* to*

I need something that redirects me to* without going to the folder test.

How can it be done?

Question by:IUAATech
    LVL 15

    Expert Comment


    RedirectMatch 301 ^/(.*)$1

    Author Comment

    That didn't work.

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

    Expert Comment

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

    Author Comment

    thanks for trying :-)

    Accepted Solution

    Closed, 250 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now