Skip to content

Instantly share code, notes, and snippets.

View HyodaKazuaki's full-sized avatar

Hyoda Kazuaki HyodaKazuaki

View GitHub Profile
@HyodaKazuaki
HyodaKazuaki / PATHINFO_URL
Created September 19, 2016 04:38
やりたいこと
# やりたいこと
http://example.jp/data
@HyodaKazuaki
HyodaKazuaki / URL
Created September 19, 2016 04:37
GETとPATHINFO
# GETの場合
http://example.jp/example.php?query=data
# PATHINFOの場合
http://example.jp/example.php/data
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?/$1 [QSA,L]
</IfModule>