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 422,972 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 3,938 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: 12155 | 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

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

  #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  
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

  #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  
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

  #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  
Join Date: Mar 2005
Location: Montreal, Qc
Posts: 3
Reputation: RackChat is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
RackChat RackChat is offline Offline
Newbie Poster

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

  #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  
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 3:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC