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
<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):
Post a Comment