![]() |
SEO Friendly URL, Fetched from Databse Category Id etc..
Ok Im an aboslute noob and dont even know if my title is on target for what I want to do.
I have a script here that creates categories etc, it's all PHP and something like ZenCart, OScommerce etc but with it I want to know how to turn it around to have SEO friendly URL's. WhenI enter a category or product Id in the back office it I assume it stores them in the ?databse? so in aassuming that they are stored in there as category1 and product 2 and so forth. This is the code used to call the category ID to the page. Code:
if(!empty($_GET[CategoryID]))Code:
<?I chose this question because ultimately it is going to help me understand the admin panel, moving stuff to a databse and linking together code. I look forward to a response. Thank you everyone. |
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 onThis 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. |
| All times are GMT. The time now is 03:41 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0