New Zenner
- Join Date:
- Feb 2009
- Posts:
- 23
- Plugin Contributions:
- 0
Friendly URLs without add on module
My site has only two categories and six products. So there ought to be a simple way to create user friendly urls without the disadvantages of an add on module.
I would like to redirect the category page
</index.php?main_page=index&cPath=1>
to the category page
</cars.php>
And similar for the other category, </trucks.php>
Then would like to redirect the item page
</index.php?main_page=product_info&cPath=1&products_id=2>
to the product page
</ford-cars.php>
And similarly for the other products, gm-cars.php.... etc
I think it can be done by redirecting(301) oldpage to newpage in .htaccess
Then changing all the menu links to static links.
Then changing site-map.htm and site-map.xml accordingly.
Would this work?
*Alternatively or concurrently
I would like to insert a<link rel="canonical" href="http://www.mysite.com/cars-ford.php"/> into the head of the Ford page. It would get the "cars-ford" from an entry I would create in /custom/meta-tags.php
I have no good idea how to do this, but its probably fairly simple.
Would this work?
Has anyone already worked this issue out?