User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Search Engine Optimization section within the Site Management category of DaniWeb, a massive community of 456,428 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,595 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Search Engine Optimization advertiser: Affiliate Marketing
Views: 12484 | Replies: 13
Reply
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

custom .htaccess file 301 Redirect to non www form

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

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

  #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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

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

  #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!
Reply With Quote  
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

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

  #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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

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

  #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.
Reply With Quote  
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

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

  #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  
Join Date: Jul 2004
Posts: 18
Reputation: acrylic is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
acrylic acrylic is offline Offline
Newbie Poster

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

  #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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

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

  #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.
Reply With Quote  
Join Date: Jul 2004
Posts: 6
Reputation: megri is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
megri megri is offline Offline
Newbie Poster

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

  #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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 33
Solved Threads: 116
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

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

  #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.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Search Engine Optimization Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Search Engine Optimization Forum

All times are GMT -4. The time now is 1:16 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC