Solved

SEO URL rewriting / mod rewrite question

Posted on 2006-11-26
3
943 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
Starting your own business is always a daunting process, and for most people it is brand new experience. Avoid the common pitfalls by following these tips to start on the road to success.
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…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

688 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