別のディレクトリに多くのhtmlページと.htaccessファイルがあるサイトがあります
http://mysite.com/index.html
.
.
.
http://mysite.com/design/index.html
.
.
.
http://mysite.com/doc/ui/index.html
.
.
.
index.htmlページのすべてを次のように書き直したい:
http://mysite.com/doc.php
.
.
.
http://mysite.com/design/doc.php
.
.
.
http://mysite.com/doc/ui/doc.php
.
.
.
単一のページdoc.phpがあり、すべてのindex.htmlページをこのページに書き換えたいので、クエリ文字列urlを取得し、doc.phpでページ値と$echoを取得できます。
これどうやってするの ?