Computing.Net > Forums > Web Development > Using Apache Rewrite to force www

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Using Apache Rewrite to force www

Reply to Message Icon

Name: RTAdams89
Date: December 16, 2007 at 21:55:36 Pacific
OS: x
CPU/Ram: x
Product: x
Comment:

How would I use Apache's rewrite rules to force all URLs in my domain to be rewritten with a www. in front?

Example:
If someone goes to http://gallery.mysite.com
it is redirected to http://www.gallery.mysite.com

A link that points to http://gallery.mysite.com/main.php
is rewritten to http://www.gallery.mysite.com/main.php

-Ryan Adams
http://RyanTAdams.com



Sponsored Link
Ads by Google

Response Number 1
Name: allam_rahmeh
Date: February 16, 2008 at 23:49:29 Pacific
Reply:

May this link wil help you

http://httpd.apache.org/docs/2.0/mi...


Allam Rahmeh
Latakia Syria


0

Response Number 2
Name: RTAdams89
Date: February 25, 2008 at 18:00:01 Pacific
Reply:

Thanks. I actually found a solution a while ago but forgot to post back. If it helps anyone else, here is my guide on how I did it: http://personal.ryantadams.com/2007...

-Ryan Adams
http://RyanTAdams.com


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Using Apache Rewrite to force www

use form fields to add to a url? www.computing.net/answers/webdevel/use-form-fields-to-add-to-a-url/203.html

Better way to force frames www.computing.net/answers/webdevel/better-way-to-force-frames/3810.html

What to use in VBScript to count www.computing.net/answers/webdevel/what-to-use-in-vbscript-to-count/3987.html