Rewrite rule to add .html suffix
问题 I am using WordPress. I need to add a custom rewriterule. I want to have two URLs for a single page. For example: www.test.com/abc <--- At present this is implemented & working fine. www.test.com/abc.html <--- Need to add .html at back side. I want to allow access to the same page with .html extension. How can I do that? 回答1: I explain through comments. RewriteEngine on RewriteBase / # Make sure it's not an actual file or directory RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST