お世話になります。
表題のApacheのmod_rewriteモジュールについてですが、
以下のように動的ページを静的化したいと思い、上記のmod_rewriteを活用し、
.htaccessにて設定したいのですが、どうもうまく行きません。
例:
対象URL
http://sample.com/second/third/index.cgi?q=$1
変換希望URL
http://sample.com/second/third/$1.html
RewriteEngine On
RewriteRule ^http://sample.com/second/third/([0-9]+).html$ http://sample.com/second/third/index.cgi?q=$1
上記の記載では上手く行かず困っています。
どうぞご教示よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー