[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

mod rewrite EASY 500 POINTS URGENT!

Posted on 2006-03-26
3
Medium Priority
?
191 Views
Last Modified: 2010-03-04
I have made a virtual host so if someone accesses example.com 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 https://www.example.com/test.php?id=6 it will change it to http://www.example.com/test.php?id=6

Max
0
Comment
Question by:TheMaximumWeasel
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 total points
ID: 16296664
in your virtual host:

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

or with mod_alias:

Redirect 301 / http://host/
0
 
LVL 4

Author Comment

by:TheMaximumWeasel
ID: 16296750
do I have to change host to my domain???

Max
0
 
LVL 27

Expert Comment

by:caterham_www
ID: 16296784
Yes.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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). #…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 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