動的URL
hoge.php?id=123
を静的URL
hoge123.html
として認識させる.htaccessの設定
RewriteEngine on
RewriteRule hoge(.+)\.html$ hoge.php?id=$1
上手く動作するかは、サーバーの設定によって変わりそうですが。
いろいろな情報があるなかで、試行錯誤して実際に使えた方法のメモです。
Go to list of users who liked
More than 5 years have passed since last update.
動的URL
hoge.php?id=123
を静的URL
hoge123.html
として認識させる.htaccessの設定
RewriteEngine on
RewriteRule hoge(.+)\.html$ hoge.php?id=$1
上手く動作するかは、サーバーの設定によって変わりそうですが。
いろいろな情報があるなかで、試行錯誤して実際に使えた方法のメモです。
Register as a new user and use Qiita more conveniently
Go to list of users who liked