Solved

SEO URL rewriting / mod rewrite question

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

If you don’t want your company's site to fail on the web, you’d do well to observe these best web design practices and make sure you implement them when applicable.
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

830 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