cake焼きました(9)
cake案件2つ目に入りました。
今回はSEO的な物を意識して、リクエスト結果など静的なページに見せかけるとのこと。
その方法として.htaccessを編集してのmod_rewriteがあると聞いたので試してみる。
RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] AcceptPathInfo on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^/result/([^/]+)/([^/]+)/([^/]+)/index.php$ /result?keyword=$1&genre=$2&tendency=$3 [L]
うーん、違うのかな…
RewriteRule (置換後) (置換前)
こういう認識じゃちがうのかな><
静的ページへの奮闘は続く
参考:
http://crenazumina.picolix.jp/archives/000128.html
http://www.phas.jp/2007/10/seomod_rewrite.html
http://www.know-the-world.com/index.php/developer/2008/09/mod_rewrite