简体   繁体   中英

WordPress a static homepage and custom blog page

  • I installed Wordpress in " localhost/ " directory.
  • I created a file called home.php and designed it as a landing page.
  • I want to move my default blog posts to the " localhost/blog/ " directory.
  • But I don't want other links to be affected by this. So " localhost/blog/contact " is wrong behavior.

But every way I tried caused problems like this.

All of these only work as a "single post" way. So " localhost/blog/ " does not contain an archive and will not work. Only the " localhost/blog/post-slug/ " link works.

Is it that difficult to create a blog with an archive page of its own " slug " in WordPress?

Don't believe you can do it without some serious htaccess manipulations. The permalink structure is set up for either including the 2nd level or not, no in between.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM