Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
server-administration:redirect-non-www-to-www [2009-10-14 23:51:00] garrett.plasky |
server-administration:redirect-non-www-to-www [2009-10-14 23:51:19] garrett.plasky |
||
---|---|---|---|
Line 3: | Line 3: | ||
Create a .htaccess file in your webroot (public_html for cPanel servers) and add the following lines: | Create a .htaccess file in your webroot (public_html for cPanel servers) and add the following lines: | ||
- | < | + | <q>%%RewriteEngine On |
RewriteCond %{HTTP_HOST} ^your-domain.com | RewriteCond %{HTTP_HOST} ^your-domain.com | ||
- | RewriteRule (.*) %%http:// | + | RewriteRule (.*) http:// |
{{tag> | {{tag> |