Solved

SEO URL rewriting / mod rewrite question

Posted on 2006-11-26
3
935 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 33

Accepted Solution

by:
humeniuk earned 500 total points
ID: 18019899
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
A great marketing strategy is diverse.  Read about the not so popular, yet effective, marketing tactics you can start using today!
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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…

739 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