Forum Moderators: phranque
index.php?category=21
now appears as:
pg-index-cat-21-d-keyword
which is all good and Google et al includes it in their indexes.
However, since index.php?category=21 was the originally indexed page and it is still a valid page on the site it cannot be removed from Google (must be 404), resulting in duplicated pages.
So, can I get over this by specifying in my .htaccess file to do a 301 redirect on all non-SEF links to SEF links? If so, how?
Here is what I have in my .htaccess atm:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^pg\-([^/\-]+)\-([^/\.]+)\.html$ /$1.php?workstring=$2 [L]
RewriteRule ^pg\-([^/\-]+)\.html$ /$1.php [L]
</IfModule>