Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
server-administration:redirect-non-www-to-www [2010-05-24 19:31:46] shaun.reitan |
server-administration:redirect-non-www-to-www [2010-06-22 23:07:18] (current) garrett.plasky |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Redirect non-www Traffic to www Using mod_rewrite ====== | ====== Redirect non-www Traffic to www Using mod_rewrite ====== | ||
- | This is an example using the mod_rewrite Apache module | + | Moved to [[:apache: |
- | + | ||
- | < | + | |
- | RewriteEngine On | + | |
- | RewriteCond %{HTTP_HOST} ^your-domain.com | + | |
- | RewriteRule (.*) http://www.your-domain.com/$1 [R=301,L] | + | |
- | </ | + | |
- | + | ||
- | {{tag> | + |