troubleshooting Question

Help with mod_rewrite ****500 POINTS URGENT****

Avatar of TheMaximumWeasel
TheMaximumWeasel asked on
Apache Web Server
1 Comment1 Solution284 ViewsLast Modified:
in the apache configuration file for 2.0 what can I put using mod_rewrite to just add a www. when there is no subdomain because I want other sub domains like forums.mydomain.com to work without redirection but if it is just mydomain.com I want it to change the url to www.mydomain.com but keep anything after the domain name for example if someone goes to http://mydomain.com/?action=login I want it to redirect to http://www.mydomain.com/?action=login also I want it to just basically change the url so in the browser history they don't see http://mydomain.com then http://www.mydomain.com only the one with www.


Max
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros