remove folder from URL and add .html
-
Hello,
I’ve been struggling mightily with this question, and I can’t seem to handle it directly within .htaccess or within my theme functions.
I’m trying to figure out how to remove any folder from the URL generated by WordPress, and then add “.html” to the end. So:
Starting URL: https://www.domain.com/ANYFOLDER/any-page-name
Ending URL: https://www.domain.com/any-page-name.html
This Plug-In handles the “.html” part, but I’m still stuck on the folder portion, and both my attempts to handle this directly through .htaccess or through an add_rewrite_rule() function produce no results.
Any assistance would be most appreciated!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘remove folder from URL and add .html’ is closed to new replies.