Wordpress static homepage
domain.com/blog/
Currently, I am showing Wordpress on the homepage domain.com/index.php using the below as index.php
<?php
define('WP_USE_THEMES', true);
require('./blog/wp-blog-header.php');
?>
But with this method, both domain.com/index.php and domain.com/blog are showing duplicate content.
I want a static page on domain.com/index.php with the same wordpress theme and no changes to domain.com/blog showing the latest posts. This way I can use the homepage as a landing page and the blog for articles.
I came across a method. But it requires installing Wordpress at root, which I don't want to, and using Permalinks to set the blog url.
I know a simple way is just to create a html page and use it as the index.php but I am trying to find out if I can do it in Wordpress.
Free e-course - build your list in 2 weeks.
.