Travel, Asia, Mobile Phone, PC, Movie, and misc

    December 16, 2007

    WordPress and .htaccess

    I decided to install WordPress which is the server installation type blog software which I was interested in long before.WordPress is one of the applications which Movable Type has a rival relation with.

    There are two blogs, an English blog and a Japanese blog, in this site. It decided to update the Japanese one with MovableType and the English one with WordPress.

    I installed WordPress to a subdirectory of the server, However I wanted WordPress to power root ( http://www.yuhasan.com/ ) but I didn't want all of the WordPress files cluttering up root directory.

    WordPress already gives us the solution for this request. It is described in http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    I tried this method and through this I learned the behavior of .htaccess. Especially the mod_rewite function is cool. I like this function :-)

    In this site, WordPress automatically added the following sentences into the existing .htaccess file. These sentenses are the mystic words of magic.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    0 commnt(s):

    About

    Author: yuha

    One of the purposes of this blog is to share information.Therefore your comments to old entries are greatly appreciated.

    Japanese site

    yuha on Twitter

    Terms and Conditions

    Contact Me

    Attention:
    Currently IE6 cannot display the map figure in the entries including reference to Google Maps.

    Search in blog

    Loading...

    Archive

    Category

    Clock of NHK

    *** The time shown in this clock comes from the computer you use. Not from the web server.