URLをhtaccessによる、スラッシュ区切りでパラメーターを渡す際、ディレクトリ直下としてPOSTすることが出来る。
$this_page = "https://example.com/1234"; $lastChar = $this_page[-1]; if($lastChar != "/"){ $header_url = $this_page."/"; header("Location: $header_url"); exit; }
URLをhtaccessによる、スラッシュ区切りでパラメーターを渡す際、ディレクトリ直下としてPOSTすることが出来る。
$this_page = "https://example.com/1234"; $lastChar = $this_page[-1]; if($lastChar != "/"){ $header_url = $this_page."/"; header("Location: $header_url"); exit; }
コメント