Instead of the usual litany of rewrite rules generated by WordPress, I’m using this abbreviated form for this site.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /index.php/$1
This simply takes the requested URI and feeds it to index.php as PATH_INFO. The PATH_INFO handler in WP takes it from there. There’s no need to update .htaccess when new rules are introduced or when the permalink structure changes. All of the rewrite juggling is handled internally by WP. This cuts mod_rewrite out of the picture except for the initial handoff. This avoids the various mod_rewrite idiosyncracies across different versions of Apache by doing an end-run around them. I like it.
[...] 212; hpnadig @ 12:48 am Changed the rewrite rules for the blog from the old one to this one. Pretty cool, it works like charm! [...]
[...] « Enter the Dragon Lady Reduced Rewrite Plugin The alternative rewrite rules I mentioned back in October can now be had in plugin for [...]
Making %category%/%postname% permalinks work in Apache 1.3.33
Ok, so anyone who reads this blog knows now that I’m on my way over to WordPress. (In fact, it was published in the Weblog Tools Collection, a handy archive of useful stuff that myrngoogle alert watch for schlueterica turned up in my inbox.)rnr…
절대주소 관련 rewrite rule 다른 대안 하나…
절대주소를 표시하기 위해서 .htaccess 라는 파일을 적어야 하는데, 기존에 제공되고 있는 방식이 아닌 다른 방식을 소개하고 있다.
절대주소 시스템을 바꾸더라도 .htaccess를 새로 쓰지 않아도 ….