Remove the www - Page 2 - 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 » Remove the www


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 10-01-2006   #11 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: Remove the www

Quote:
Originally Posted by mozza
Good advice! It's better for the Page Ranking if there's only one. Either with www or without www. Better for the visitors too! However, maybe it's because i'm all used to the url with www, i removed the no-www for my websites with another .htaccess config
mozza, you can even put code in your .htaccess file to always retain the www, opposite of what I posted above.
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

MegaThemes | Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-01-2006   #12 (permalink)
mozza
Senior Member
 
mozza's Avatar
 
Join Date: Jul 2006
Age: 23
Posts: 238
Default Re: Remove the www

Quote:
Originally Posted by Ajay
mozza, you can even put code in your .htaccess file to always retain the www, opposite of what I posted above.
yep, that's what i did to retain the www which i'm so used to
__________________
Feat!
Precharge Projectnet
mozza is offline   Reply With Quote

Old 10-01-2006   #13 (permalink)
scoooooty
Senior Member
 
scoooooty's Avatar
 
Join Date: Aug 2006
Location: Victoria Australia
Age: 21
Posts: 360
Send a message via MSN to scoooooty
Default Re: Remove the www

Nice tip. Thx
scoooooty is offline   Reply With Quote

Old 10-17-2006   #14 (permalink)
Tucker
Senior Member
 
Join Date: Oct 2006
Age: 21
Posts: 176
Default Re: Remove the www

Does this have to go on an .htaccess file for every file-folder, or just in a parent directory and then affect only the first portion of all web-addresses?
__________________
Don't gain the world and lose your soul, wisdom is better than silver or gold.
~Bob Marley~
Tucker is offline   Reply With Quote

Old 10-17-2006   #15 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: Remove the www

Only in the parent directory.

All .htaccess file rules in the parent directory automatically effect those in subfolders
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

MegaThemes | Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 10-18-2006   #16 (permalink)
GuyKels
Senior Member
 
Join Date: Oct 2006
Age: 21
Posts: 117
Default Re: Remove the www

Can this same command be used to redirect the site to an entirely different site? For example, say you moved your website to a new domain name. Could you use the same command to change yourdomain.com/page.html to yourotherdomain.com/page.html?
GuyKels is offline   Reply With Quote

Old 10-18-2006   #17 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: Remove the www

You can use mod_rewrite to achieve what you want above.

However, if you are planning on forwarding your entire site, you might as well use a Forwarding Domain option at your domain registrar.
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

MegaThemes | Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 11-14-2006   #18 (permalink)
mann3r
Senior Member
 
Join Date: Jul 2006
Location: http://www.allseocontest.com/dir/
Age: 29
Posts: 1,046
Default Re: Remove the www

Ajay,
can you post the code for retaining that www. thanks.
mann3r is offline   Reply With Quote

Old 11-14-2006   #19 (permalink)
Ajay
Senior Member
 
Ajay's Avatar
 
Join Date: Aug 2006
Age: 26
Posts: 755
Default Re: Remove the www

Quote:
Originally Posted by mann3r View Post
Ajay,
can you post the code for retaining that www. thanks.
<IfModule mod_rewrite.c>

# Retain the www.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

</IfModule>
__________________
Ajay D'Souza

Techtites - Your daily dose of all things Tech!

MegaThemes | Sir Arthur Conan Doyle | I Sent This

WebberZone Domains
Ajay is offline   Reply With Quote

Old 11-15-2006   #20 (permalink)
mann3r
Senior Member
 
Join Date: Jul 2006
Location: http://www.allseocontest.com/dir/
Age: 29
Posts: 1,046
Default Re: Remove the www

Quote:
Originally Posted by Ajay View Post
<IfModule mod_rewrite.c>

# Retain the www.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

</IfModule>
thanks, just downloaded the plugin for wordpress to redirect the non www site.
mann3r 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Listing from DMOZ evely All Other SE's & Directories 1 1 Week Ago 04:21 PM
Can't remove directly alex Site and Server Administration 1 10-12-2006 10:09 AM


footer left
All times are GMT. The time now is 04:10 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

Mortgage | Send Telegram | Personal Loans | Credit Card Application | Loans

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