Support » Fixing WordPress » .htaccess forwarding to static front page

  • Resolved Michael_


    Hi *

    I’d like to have a static front page to avoid having the latest posts on the front page.
    I have evaluated Static Front Page, but however there is one issue:

    Q: I want a static front page and a normal blog (…)
    A: Create a category called ‘Blog’, make it the default category, and put every post in it

    I still want to use categories in a normal manner, therefore this plugin isn’t a solution for me.

    Therefore, I have thought about using .htaccess on Apache server.

    E.g. the static page is located at “”. One could use e.g.
    Redirect /

    But this one causes an error. Do you have an idea of such .htaccess rule to change “” to “” but to NOT change urls like “” or “” etc. ?

    Many thanks in advance.


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]
    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.

    Great, many thanks 🙂

    Works like a charm! Also, if I enter “”, it directs me to “” 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,

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