mod rewrite EASY 500 POINTS URGENT!

Posted on 2006-03-26
Last Modified: 2010-03-04
I have made a virtual host so if someone accesses with https:// it uses this virtualhost. How can I use mod_rewrite so in this virtual host it automatically changes to http:// but keeps everything else so if it is it will change it to

Question by:TheMaximumWeasel
    LVL 27

    Accepted Solution

    in your virtual host:

    RewriteEngine on
    RewriteRule ^/(.*) http://host/$1 [R=301,L]

    or with mod_alias:

    Redirect 301 / http://host/
    LVL 4

    Author Comment

    do I have to change host to my domain???

    LVL 27

    Expert Comment


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    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…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 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

    16 Experts available now in Live!

    Get 1:1 Help Now