I need to change my URL names to remove the “.html”.
I need it to change from something like “http://supplementshelf.com/protein.html” to “http://supplementshelf.com/protein”.
How can I do this?
bump
Anybody?
./addons/seo/func.php
// Product
if ($object_type == 'p') {
// Categories path
if ($seo_types['seo_product_type'] == 'product_category') {
$cat_path = db_get_field("SELECT b.id_path FROM ?:products_categories as a LEFT JOIN ?:categories as b ON a.category_id = b.category_id WHERE a.product_id = ?i AND a.link_type = 'M'", $object_id);
if (!empty($cat_path)) {
$cats = explode('/', $cat_path);
foreach ($cats as $v) {
$item_names[] = fn_get_seo_name($v, 'c', '', '', $lang_code);
}
}
}
[COLOR=Red]//$seo_name = $seo_name . '.html'; //edited by Jesse-Lee Stringer
$seo_name = $seo_name;[/COLOR]
unset($query_params['product_id']);
my seo urls don’t work too good because of too many repeating products name and categories.
how can i make seo urls like www.mysite.com/categories/product(and product code/id) in the url.
is it possible ?