Guest Posted January 8, 2007 Share Posted January 8, 2007 I have a fairly established store that has good indexing by google etc I have installed a SEO Urls contrib that is used by one of the fork OSc Derivatives and it works fine i.e. it changes a url to be as follows in my store :- http://www.outdoorbits.com/p94/Mapa-Seat-S...oduct_info.html instead of http://www.outdoorbits.com/product_info.php/products_id/94 I have no idea whether this does actually improve on your ranking at all btw, just seemed a good idea ;) anyways, my concern is with this switched on the old urls no longer work and produce a product not found page which isn't good !!, is there any way of adding to the rewrites so that if a page query comes in for a product using the old format that it is instead shown the new url ? I am pretty sure this should be possible my .htaccess file # $Id: .htaccess # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) <IfModule mod_php4.c> php_value session.use_trans_sid 0 php_value register_globals 1 php_flag display_errors On php_flag track_errors On </IfModule> #CRE_SEO Install Begin DirectoryIndex index.php default.php Options +FollowSymLinks RewriteEngine on RewriteBase / #SEO check for images and skip all the other rules for performance reasons only RewriteRule ^.*\.gif|\.jpg|\.png|\.css|\.php$ - [L] # SEO reformats for product_info.html pages RewriteRule ^m([0-9]+_?[0-9]*)/?(.*)/p([0-9]+_?[0-9]*)/(.*)/product_info\.html$ product_info.php?manufacturers_id=$1&products_id=$3 [QSA,L] RewriteRule ^p([0-9]+_?[0-9]*)/(.*)/product_info\.html$ product_info.php?products_id=$1 [QSA,L] RewriteRule ^(.*)/c([^/]*)/p([0-9]+_?[0-9]*)/(.*)/product_info\.html$ product_info.php?cPath=$2&products_id=$3 [QSA,L] # SEO reformat for index.html pages RewriteRule ^m([0-9]+_?[0-9]*)/?(.*)/p([0-9]+_?[0-9]*)/(.*)/index\.html$ index.php?manufacturers_id=$1&products_id=$3 [QSA,L] RewriteRule ^m([0-9]+_?[0-9]*)/(.*)/index\.html$ index.php?manufacturers_id=$1 [QSA,L] RewriteRule ^(.*)/c([^/]*)/p([0-9]+_?[0-9]*)/(.*)/index\.html$ index.php?cPath=$2&products_id=$3 [QSA,L] RewriteRule ^(.*)/c([^/]*)/index\.html$ index.php?cPath=$2 [QSA,L] # SEO reformat for information.html pages RewriteRule ^i([0-9]+_?[0-9]*)/(.*)/information\.html$ information.php?info_id=$1 [QSA,L] # SEO reformat for pages.html pages RewriteRule ^p([0-9]+_?[0-9]*)/(.*)/pages\.html$ pages.php?pID=$1 [QSA,L] RewriteRule ^(.*)/c([^/]*)/p([0-9]+_?[0-9]*)/(.*)/pages\.html$ pages.php?cID=$2&pID=$3 [QSA,L] RewriteRule ^(.*)/c([^/]*)/pages\.html$ pages.php?cID=$2 [QSA,L] # SEO reformat for articles.html pages RewriteRule ^(.*)/t([^/]*)/a([0-9]+_?[0-9]*)/(.*)/articles\.html$ articles.php?tPath=$2&articles_id=$3 [QSA,L] RewriteRule ^(.*)/t([^/]*)/articles\.html$ articles.php?tPath=$2 [QSA,L] # SEO reformat for article_info.html pages RewriteRule ^a([0-9]+_?[0-9]*)/(.*)/article_info\.html$ article_info.php?articles_id=$1 [QSA,L] RewriteRule ^(.*)/t([^/]*)/article_info\.html$ article_info.php?tPath=$2 [QSA,L] # SEO reformats for product_reviews.html pages RewriteRule ^p([0-9]+_?[0-9]*)/(.*)/product_reviews\.html$ product_reviews.php?products_id=$1 [QSA,L] RewriteRule ^(.*)/c([^/]*)/p([0-9]+_?[0-9]*)/(.*)/product_reviews\.html$ product_reviews.php?products_id=$3 [QSA,L] # SEO reformats for product_reviews_info.html pages RewriteRule ^p([0-9]+_?[0-9]*)/(.*)/review([0-9]+_?[0-9]*)/product_reviews_info\.html$ product_reviews_info.php?products_id=$1&reviews_id=$3 [QSA,L] #SEO catch all in case other rules did not match RewriteRule ^(product_info|index|information|pages|articles|article_info|product_reviews|p roduct_reviews_info)\.html$ $1.php [QSA,L] Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 9, 2007 Share Posted January 9, 2007 Anytime you change your links, your ranking will suffer. If done properly, they will recover in a short amount of time. You should install the Ultimate SEO contribution since it handles that for you automatically. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.