htaccess を使用してルート ディレクトリを変更できるようにしたいと考えています。
これ欲しい:
index.php/user/user_postdetail/index/14
これになるには:
index.php/post_14.html
使ってみた
RewriteRule post_([0-9]+).html$ /index.php/user/user_postdetail/index/$1 [L=301,R]
しかし、私はそれを逆にしています。何か案は?
htaccess を使用してルート ディレクトリを変更できるようにしたいと考えています。
これ欲しい:
index.php/user/user_postdetail/index/14
これになるには:
index.php/post_14.html
使ってみた
RewriteRule post_([0-9]+).html$ /index.php/user/user_postdetail/index/$1 [L=301,R]
しかし、私はそれを逆にしています。何か案は?