URLがwww.xxx.com/theproblem/is-here.html
. を取得したいis-here.html
のですが、このルールでは....
RewriteRule ^([a-z\-\_A-Z0-9]+)/([^/]+)?(?<!\.html)\b/?(([^/]+)\.html)?$ this.php?param1=$1¶m2=$2¶m3=$3
...param3 の戻り値は ですhere.html
。それは、param 2 get is-
.
なぜこうなった?
この目標を達成したい:
www.xxx.com/theproblem/is-here.html. -> param1=theproblem | param2=is-here.html
www.xxx.com/theproblem/why-this/ -> param1=theproblem | param2=why-this
www.xxx.com/theproblem/why-this/is-here.html. -> param1=theproblem | param2=why-this | param3=is-here.html
これどうやってするの?