How can I make the URL address end with .html?
This is an open discussion with 3 replies, filed under General.
Search
Should be possible via editing the mod_rewrite rules in the .htaccess
. Or easier and cleaner via URL Router. For example route from:
/\/(.*?)\.html/i
to
/$1/
Not tested, but in theory this should quietly route URLs entered with .html-suffix to pages of the same name without the suffix. Of course this has to follow your specific URL-structure.
(I never get those expressions right the first time, always habe to got through by trial-and-error.)
ok,thank you very much,I will try it.
Create an account or sign in to comment.
I plan to have a website revision, in order to minimize the impact on the reduction of SEO, I hope you can keep the consistency of the URL, I would like to ask, how can we make the site URL to html suffix?