View Single Post
Old 07-26-2009, 03:07 AM   #2 (permalink)
jcorradino
The Contributor
 
jcorradino's Avatar
 
Join Date: Sep 2008
Posts: 36
Thanks: 2
jcorradino is on a distinguished road
Default

ok, it seems that you are getting something like yourwebsitehere.com/index.php?category=fu&product=bar, but you would rather have yourwebsitehere.com/fu/bar/.

The easy way to do this would be through the following code in a .htaccess in your main www directory.

Code:
RewriteEngine on
Options +FollowSymLinks
RewriteRule ^(.+)/(.+)/ index.php?category=$1&product=$2 [L,NC,QSA]
RewriteRule ^(.+)/ index.php?category=$1 [L,NC,QSA]
If there is more than that, just keep adding (.+)/'s up to 9.

This will show the user a nice SEO friendly, readable URL, while passing the data the webapp needs to function.

www.website.com/electronics/laptop2/ = http://www.website.com/index.php?cat...roduct=laptop2

Hope this helped :)

EDIT: Then again, I just realized that if the app was not built by you, you will need to rewrite the linking structure for the site. As all links will still point to the nasty link. Most CMS software supports seo friendly linking, either out of the box or through a plugin.
__________________
Jason Corradino
Applications Developer, Interactive Support - Tribune Technology
J2EE Development, Script Tinkering - Develop, Support, and Maintain Tribune websites.
jcorradino is offline  
Reply With Quote