Add the www - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Site and Server Administration » Add the www


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 02-21-2007   #1 (permalink)
santoshgs
Member
 
santoshgs's Avatar
 
Join Date: Feb 2007
Posts: 62
Default Add the www

Hi,

This topic here deals with removing the www: precharge.net/forums/site-server-administration/13951-remove-www.html

But I want my sites to have the www since i have gone with it for far too long to give it up now.

Thanks.
santoshgs is offline   Reply With Quote


Old 02-21-2007   #2 (permalink)
VP
Member
 
VP's Avatar
 
Join Date: Jul 2006
Location: Espoo, Finland
Age: 20
Posts: 79
Send a message via ICQ to VP Send a message via AIM to VP Send a message via MSN to VP Send a message via Yahoo to VP
Default Re: Add the www

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^\domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
__________________
Indiana Jones
VP is offline   Reply With Quote

Old 02-21-2007   #3 (permalink)
santoshgs
Member
 
santoshgs's Avatar
 
Join Date: Feb 2007
Posts: 62
Default Re: Add the www

Hi VP,

Thanks for the reply. I'll see if it works.
santoshgs is offline   Reply With Quote

Old 02-22-2007   #4 (permalink)
robert
Super Moderator
 
Join Date: Jun 2006
Age: 30
Posts: 1,132
Default Re: Add the www

Ahh, gotta love mod_rewrite ;)
__________________
Hi! Welcome to preCharge.NET
robert is offline   Reply With Quote

Old 07-18-2007   #5 (permalink)
ColeCash
Member
 
Join Date: Jul 2007
Posts: 32
Default Re: Add the www

Using the mod_rewrite is so important. You might always link to your site the same way, but others may not. To keep all links pointing to the same site you need the rewrite. Without it, search engines will treat the www and non-www as two different addresses.
ColeCash is offline   Reply With Quote

Old 1 Week Ago   #6 (permalink)
willyoumind
Senior Member
 
willyoumind's Avatar
 
Join Date: Jul 2008
Posts: 180
Default Re: Add the www

Quote:
Originally Posted by ColeCash View Post
Using the mod_rewrite is so important. You might always link to your site the same way, but others may not. To keep all links pointing to the same site you need the rewrite. Without it, search engines will treat the www and non-www as two different addresses.
Therefore, no matter how hard or tough it is, as a webmaster we need to master the mod_rewrite skill, and this will surely help us in the website editing...
willyoumind is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


footer left
All times are GMT. The time now is 10:06 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Online Image Resizer | Internet Advertising | Range-Cookers.org | Memory limits in php | Mortgage Calculator

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49