Wordpress static homepage

by 4 replies
6
For majority of my sites, I want to install Wordpress into "blog" folder.

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.
#main internet marketing discussion forum #homepage #static #wordpress
  • Here's how to set up a static homepage in Wordpress... Taken from my WSO





    Hope that helps

    Tony
    • [1] reply
  • I would say there are two ways of doing this.

    One, as Launchworkshop desicribed, is to set a static homepage as your landing page and then to set up a "page" called blog to use for your blog posts.

    This, though, uses the permalinks.

    The second way would be to do another installation of wordpress on yourdomain.com/blog

    This would be totally separate from your landing page. You could use the same theme or a different one and there would be no connection between the two.
  • Thanks Tony, I know these steps. But as shared in my first post, this method only works if you want a static page plus posts page in the same directory level, or installing WP in root and using permalinks to make them different.

    What I want is the WP files installed in /blog/ with no changes to the WP index page on domain.com/blog/ but I want to have a static page with the same WP theme design on domain.com/index.php

    I know it can be easily done with a html file by copying the WP theme. But I want to find out if it's possible to do it via WP interface.

Next Topics on Trending Feed