Solved

SEO URL rewriting / mod rewrite question

Posted on 2006-11-26
3
883 Views
Last Modified: 2008-01-09
I just need some clarification on this code for SEO purposes.

My client has a site that is run through a processing index.php page,,,, the url's are normally domain.com/index.php?var=1,0,0 etc. So i took it upon me to implement URL rewriting. Now the only way i could do this is by having processing file. index.php and index2.php

Below is my code for the about us page.

--------------------------------------------------------------------

RewriteEngine On
RewriteBase /

RewriteCond %{QUERY_STRING} ^index.php?var=2,0,0$
RewriteRule ^index.php$ /about-us.html? [R=301,L]

RewriteRule ^about-us\.html$ index2.php?var=2,0,0 [L]

---------------------------------------------------------------------


Basically i don't have to hard code any links on the pages to the new URL's because the code will process that for me when the user clicks a hyper link. But from and SEO point of view is this an ethical approach... will the about-us.html page gain pagerank eventually or will it stay with the var=2,0,0 page???

Many thanks

Shane
0
Comment
Question by:ShaneJones
3 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 500 total points
Comment Utility
Your rewrite syntax includes the R=301 flag, which generates the permanent redirect response you want for SEO purposes, ie. the benefits and PageRank will be passed to the about-us.html page.

Having said that, as a matter of policy, I tend to recode links in a case like this, but that is a matter of preference, not necessity.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Your personal information, where you live, your wedding information, and anything else personal may be located online and in many cases the aggregators who pulled this stuff did so without your permission. Here are ways that you can get rid of unwan…
Read about the 3 stages of the buyer's journey: awareness, consideration, and decision.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now