Combine .htaccess file for HTML and WordPress
-
I have a site that was a self-coded HTML site with a WordPress blog attached. I am in the process of changing it over to a fully WordPress site, intending over time to convert all my HTML pages to WP pages.
I have successfully set it up so that my WP static home page is in the root directory and is the home page for the whole site. This required me to use the WP .htaccess file as the site .htaccess file
There is one problem with this. My old site .htaccess file had some content in it to (among other things) allow alternative URLs (https://www. sitename, https://sitename, sitename/index.html, sitename/index.shtml and sitename/index.php to all be recognised and accepted. Visitors or links with any of these configurations would be able to reach the site.
I have copied these lines of code from the old .htaccess file to the new one, but they don’t seem to work, whether I put them after the WP code (which starts with #BEGIN WordPress and ends with #END WordPress) or before it.
Is there any trick to this that I need to know please?
Site is https://www.is-there-a-god.info
- The topic ‘Combine .htaccess file for HTML and WordPress’ is closed to new replies.