custom .htaccess file 301 Redirect to non www form

Please support our Search Engine Optimization advertiser: Search Engine Optimization Services
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

custom .htaccess file 301 Redirect to non www form

 
0
  #1
Jul 11th, 2004
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.
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
  #2
Jul 13th, 2004
No replys... this is what I tried, but it didn't work,
am I close?

RewriteCond %{HTTP_HOST} www.clearcanes.com RewriteRule ^(.*) http://clearcanes.com/$1 [L,R=301]
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,026
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

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

 
0
  #3
Jul 17th, 2004
I did some research and found the code to do the opposite, which is to add the www, is:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^daniweb\.com [NC]
RewriteRule ^(.*)$ http://www.daniweb.com/$1 [L,R=301]

However, it doesn't seem to work with subdirectories. Can anyone comment or help out with this? Thanks!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
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
  #4
Jul 18th, 2004
Seems to work, pointing all calls using
non-www to www form.
(adds the www)
Not exactly what I wanted, but it probably will even out
in a couple months. A bunch of thanks to you, cscgal.
Tried reversing placement of the www, and the status bar, kept
switching from www or non-www and back, with no page load.


Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^clearcanes\.com [NC]
RewriteRule ^(.*)$ http://www.clearcanes.com/$1 [L,R=301]
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,026
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

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

 
0
  #5
Jul 19th, 2004
Are you keeping it set up this way or should I still be on the lookout for the reverse? Personally, I always use www in domain names.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
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
  #6
Jul 21st, 2004
Keeping it this way, switching all links etc to www form.
PR dropped from two to 0 but, still have about same decent results from
my best search phrases. I know it will take a while to consolidate backlinks and even out. I want to thank you again, the seo places I tried to pay to do this didn't want to get involved with something so small.
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
  #7
Jul 23rd, 2004
Effects of 301 redirect update, a few days after:

Of couse Google PR dropped a couple points but search results for my best search terms are the same (lucite cane is still toward the bottom of the second page) I guess PR isn't everything, one site with the same product has a PR0 and is always in 1-3 spot on the first page.

Yahoo is a different story, I used be toward the top (1-3) of the first page,
Now many pages from the first, for "lucite cane/s "

This is interesting. I'm paying for my laziness in not filling in the www.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,026
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

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

 
0
  #8
Jul 23rd, 2004
Check out a bunch of other posts on this forum about google PR. After any major changes such as this, I'd also give it about 2 weeks before you see any real Google effects.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
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
  #9
Jul 25th, 2004
Google is unstable from last 7-8 days after change of BL's So we cannot draw the conclusions till the dance or updates are completed
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: Feb 2002
Posts: 12,026
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 125
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

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

 
0
  #10
Jul 25th, 2004
I had heard somewhere though that Google doesn't dance anymore. Instead, it's just a constant flow of small updates. All that happens is every X weeks the backlinks we see are updated and the google toolbar is updated with a newer PR - but in reality, G had been taking those things into consideration long before we got to see them.
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/daniweb
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC