WilHatfield
Admin
 Admin
| Posts: 17 |  | Karma: 0
|
Re: Help with creating Search engine friendly URL's - 2005/11/30 10:10
Here is the unvague short of it. In your templates find any href values that point to the product or categories. I do it for basic screens too like BASK or additional screens I have created. Change all of these to this naming scheme:
Categorized Products /p/&mvta:category:code;/&mvta roduct:code;
Uncategorized Products /p/&mvta roduct:code;
Categories /c/&mvta:category:code;
Screens you want friendly links for (example BASK below). /s/BASK
Now in the .htaccess file you will use: [size=9:f761712f64] RewriteCond %{REQUEST_URI} !-s RewriteRule ^p/(.*)/(.*) /Merchant5/merchant.mvc?Screen=PROD&Store_Code=CP&Category_Code=$1&Product_Code=$2 RewriteRule ^p/(.*) /Merchant5/merchant.mvc?Screen=PROD&Store_Code=CP&Product_Code=$1 RewriteRule ^c/(.*) /Merchant5/merchant.mvc?Screen=CTGY&Store_Code=CP&Category_Code=$1 RewriteRule ^s/(.*) /Merchant5/merchant.mvc?Screen=$1&Store_Code=CP [/size:f761712f64] Note on line wrapping... The above is actually only 5 lines but the line wrapping messes it up. When you put it into the .htaccess file the lines should begin with RewriteCond and then the 4 RewriteRules.
Happy Trails,
Wil
|