Solved

SEO URL rewriting / mod rewrite question

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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 …
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
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…
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…

815 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

13 Experts available now in Live!

Get 1:1 Help Now