This is a line of code on my htaccess file
RewriteRule ^([^\.]+)$ details.php
And this is working fine with this URL
example.com/shiv-sales-corporation
Now i want to add .html at the end of URL
example.com/shiv-sales-corporation.html
I have changed my htaccess code with this
RewriteRule ^([^\.]+)\.html$ view_details.php
but the other pages or links are conflicting after it, kindly help me please!
Note: "shiv-sales-corporation" is a slug which i fetching it from the database, it changed randomly by other link on page. Examples:
example.com/ibm
example.com/apple-corp
example.com/himalaya-ltd