custom .htaccess file 301 Redirect to non www form

Please support our Search Engine Optimization advertiser: Get a Free SEO Analysis!
Reply

Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

Re: custom .htaccess file 301 Redirect to non www form

 
0
  #11
Oct 7th, 2004
Update:
About 10 weeks after 301 redirect
PR is back to 4 on most pages, not bad for my cheezy little site.
Search results and sales were quite decent during that time, and
is only a little better now.
Thanks, couldn't have done it without your help.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 6
Reputation: megri is an unknown quantity at this point 
Solved Threads: 0
megri megri is offline Offline
Newbie Poster

Re: custom .htaccess file 301 Redirect to non www form

 
0
  #12
Oct 12th, 2004
Originally Posted by acrylic
Would someone please create a
custom .htaccess file
301 Redirect pointing all calls using the the www
version to the non-www form.
for clearcanes.com that I can insert
so all my back links help my PR.

I found out how to access and edit the
existing hta file:

%2Fpublic_html%2F.htaccess

(apatche)

I saw the tutorals, but I'm not too quick on this.
What I tried didn't work
Need someone to write the exact code to insert.
I think it's one or two lines.

USE IT

The 301 directive is quite powerful. You can redirect not just single files but entire sites, e.g.

redirect 301 / http://www.you.com/

The first "/" indicates that everything from the top level of the site down should be redirected.
Mohnesh Kohli
http://www.megrisoft.com
Manual Directories Submission Article Writing Services
Get Cheap Web Hosting , Designing & SEO Services.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

Re: custom .htaccess file 301 Redirect to non www form

 
0
  #13
Dec 10th, 2004
After the redirect, another think to check:

Any non-www image url's in froogle data upload
would result in no displayed image for that product, but
images displayed for the www form products.
Reply With Quote Quick reply to this message  
Join Date: Mar 2005
Posts: 3
Reputation: RackChat is an unknown quantity at this point 
Solved Threads: 0
RackChat RackChat is offline Offline
Newbie Poster

Re: custom .htaccess file 301 Redirect to non www form

 
0
  #14
Mar 23rd, 2005
A member of our forum pointed me to this code which works with subdirectories and subdomains. The only problem is it doesn't work with addon domains.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.rackchat\.com [NC]
RewriteRule ^(.*) http://www.rackchat.com/$1 [L,R=301]
</IfModule>

Hope this helps
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: traged is an unknown quantity at this point 
Solved Threads: 0
traged traged is offline Offline
Newbie Poster

thanx

 
0
  #15
Oct 15th, 2009
Ahh thanx it is working, i have searched for the www to non-www so long Everybody uses opposit direction...
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



Tag cloud for Search Engine Optimization
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC