HostNode.com :: HostSeeker's Talk
Home Register FAQ Members List Calendar Mark Forums Read
Go Back   HostNode.com :: HostSeeker's Talk > Main Forums > SEO and Promotions Techniques > nice little tip
Reply
 
LinkBack Thread Tools Rate Thread Display Modes
(#1 (permalink))
Old
tomcromp tomcromp is offline
Confirmed User
tomcromp is on a distinguished road
 
Posts: 60
Join Date: Mar 2004
Location: London
nice little tip - 04-11-2004, 02:24 PM

Funneling PageRank from root domain to www. using Mod_ReWrite

unneling PageRank from root domain to www. using Mod_ReWrite

The Problem

When building PageRank you may encounter someone who links to your domain as domain.com and someone else links to a page with www.domain.com. The trouble is, Google will not see these as the same page but rather two separate pagenames named domain.com/pagename.html and www.domain.com/pagename.html respectively. Consequently, each of these pages will have different PageRank. This could curtail your SEO efforts.

The Solution

You use mod_rewrite to rename the pages automatically when visited by either spider or human. This will funnel your PageRank to the correct page, either www. or without, your choice.

Requirements

- Fair level of internet expertise, at least with FTP.
- Admin access to the domain
- Apache WebServer.
- Mod-rewrite. Ask your webhost if its installed. Many don't have it on by default.
- .htaccess. Again ask your webhost if you're not sure. They may have to change their Virtual Host setting to AllowOveride.

First make a backup of .htaccess if one exists. If it doesn't exist, copy and paste the following code:

This is a mod_rewrite rule that will change your pagenames. You can make a fatal error and crash your website with this technique, so make sure you have a backup of .htaccess if there was one, or the ability to quickly delete the one you add, if necessary.

CODE
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com
rewriterule (.*) http://www.domain.com/$1 [R=permanent,L]

You should be able to copy and paste this example after changing domain.com to your domain name.

Hit refresh in your browser. You should now be able to enter www.domain.com or domain.com in your browser and be brought to the correct page. You will see the URL change in your address bar due to the rewrite!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#2 (permalink))
Old
Trifolic Trifolic is offline
Confirmed User
Trifolic is on a distinguished road
 
Posts: 209
Join Date: Jun 2004
04-11-2004, 06:58 PM

Nice tutorial, I use the same system for making files or ?= into directory location..


Do you have news? Want it published?
Visit http://www.w3reports.com - Daily News for Webmasters
Get FREE News for your site by clicking here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
(#3 (permalink))
Old
I, Brian I, Brian is offline
Registered User
I, Brian is on a distinguished road
 
Posts: 1
Join Date: Apr 2004
04-14-2004, 01:30 PM

Link! Links! Links!

In other words - worry more about getting good spiderable links in, rather than pushing PR with mod_rewrites. That's completely missing the point, IMO.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VERY NICE PORTFOLIO OF 130 Nice Domain Names Billy Domain Names Offers & Requests 4 07-24-2005 09:05 PM
Nice Sale Nice Names Offer Me sonsorsons Domain Names Offers & Requests 2 04-06-2005 07:42 AM
VERY NICE PORTFOLIO OF 125 Nice Domain Names Billy Domain Names Offers & Requests 6 06-08-2004 08:44 AM
VERY NICE PORTFOLIO OF 125 Nice Domain Names Billy Domain Names Offers & Requests 1 05-14-2004 01:29 PM
cheap -- cheap -- nice -- nice -- $5 -- $5 Com-A-Kazee Domain Names Offers & Requests 0 02-29-2004 03:57 PM


All times are GMT +2. The time now is 06:00 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0
vB.Sponsors
© 2003 - 2007 HostSeeker.com - All rights reserved