Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael, I think what you’re looking for is something like this:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^$ /index.php?pagename=home [QSA,L]
    </IfModule>
    which should work assuming you have the normal permalinks working and a page named “home.”

    Another option is simply to create a file named home.php and put it into your theme’s folder. WordPress will load that file as the blog’s home page.

    And if you want to have a static home page and your blog entries in another directory, without using categories, I’ve written a plugin to do that, although I strongly urge against casual users using it for any version prior to WordPress 2.0, because it does things to the .htaccess file.

    Thread Starter michael_

    (@michael_)

    filosofo:
    Great, many thanks ??

    Works like a charm! Also, if I enter “https://www.blog.com&#8221;, it directs me to “https://www.blog.com//index.php?pagename=home&#8221; but does not display this weird index.php?… in the browser’s url field. Just great. OK, this is what mod_rewrite does ??

    I need to learn more about regex and also about mod_rewrite since it is a very powerful method for manipulating page requests.
    Also, I will evaluate your plugin.

    Thanks again,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘.htaccess forwarding to static front page’ is closed to new replies.