•
•
•
•
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,429 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,624 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
![]() |
•
•
Join Date: Jul 2004
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
•
•
•
•
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.
http://www.megrisoft.com
Manual Directories Submission Article Writing Services
Get Cheap Web Hosting , Designing & SEO Services.
•
•
Join Date: Mar 2005
Location: Montreal, Qc
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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.
Hope this helps
<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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Search Engine Optimization Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
.net adsense adult advertising asp biometrics blogging bomb book business coding copyright custom development engine environment failure forum gasoline google hybrid internal combustion engine legal malware marketing mcafee microsoft monetization msn news operating pagerank patent privacy publishing revenue search security silverlight skin software spyware support system technical theme web webmaster wiki yahoo
- custom .htaccess file 301 Redirect to non www form Prolems (Search Engine Optimization)
Other Threads in the Search Engine Optimization Forum
- Previous Thread: Google Logo Goes Blue for World Water Day!
- Next Thread: Ask Jeeves Sold Today


Linear Mode