Original: http://www.mysite.my/page.php?id=688
With html func code:
{capture name=some_content assign=page_url}
{if $seo_settings.enable_mod_rewrite}{seo->makeDetailsLink p1=`$v.id` p2=`$v.title`}{else}{$live_site}/page.php?id={$v.id}{/if}
{/capture}
After enable URL friendly option.
Currently, it works like this: www.mysite.com/item-name123/page.html
. However, I tried to remove the page.html$
to page$
but it still display the old link. and I need to re-write url link to www.site.com/item-name123/page
in order to makes it work.
How can I transform it to be www.site.com/page/item-name123
and after click on the text will automatically find the exactly link like this: www.site.com/page/item-name123
?
Current codes:
RewriteRule ^([0-9]+)-([^\/]+)?/page.html$ page.php?id=$1 [nc,qsa]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
Updated: abc
to item-name123
(for better understanding)
Full code of .htaccess