maezawa/estdoc3/master/htdocs/.htaccess - Htaccess File

maezawa/estdoc3/master/htdocs/.htaccess

php_value auto_prepend_file "/Users/estdocuser/Sites/estdoc3/confs/conf.php"
#php_value auto_prepend_file "/home/est/confs/conf.php"

RewriteRule ^clinic/([0-9]+)/$ https://estdoc.com/clinic/$1/ [R=301,L]

RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !.[^/.]+$
RewriteRule .* %{REQUEST_URI}/ [R]

#RewriteCond %{REQUEST_FILENAME} !(doctor/reserve/index.php)
#RewriteCond %{REQUEST_FILENAME} !(doctor/reserve/complete.php)
#RewriteCond %{SERVER_PORT} !^80$
#RewriteRule .* http://192.168.16.21%{REQUEST_URI} [R=301,L]
#
#RewriteCond %{REQUEST_FILENAME} (doctor/reserve/index.php) [OR]
#RewriteCond %{REQUEST_FILENAME} (doctor/reserve/complete.php)
#RewriteCond %{REQUEST_FILENAME} -f [OR]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteCond %{SERVER_PORT} !^443$
#RewriteRule .* https://192.168.16.21%{REQUEST_URI} [R=301,L]

RewriteRule ^doctor/([0-9]+)/$ /doctor/?id=$1 [QSA,L]
RewriteRule ^japan/(.+)/$ /Tlist/index.php?${tl:$1}
RewriteRule ^railway/(.+)/(.+)/$ /Rlist/index.php?pref=${pref2id:$1}&lineId=${rl:$2} [QSA,L]
RewriteRule ^railway/(.+)/$ /Rlist/index.php?pref=${pref2id:$1}

RewriteRule ^special/(.+)/(.+)/(.+)/$ /result.php?feat[]=${feat2id:$1}&speciality_id=${spec2id:$2}&pref=$3 [QSA,L]
RewriteRule ^special/(.+)/(.+)/$ /result.php?feat[]=${feat2id:$1}&speciality_id=${spec2id:$2} [QSA,L]
RewriteRule ^special/(.+)/$ /special/index.php?id=${feat2id:$1} [QSA,L]

## /result/shika/toukyouto/shinjukuku/ookubo/
RewriteRule ^result/(.+)/(.+)/railway/(.+)/(.+)/$ /result.php?speciality_id=${spec2id:$1}&pref=$2&lineR=$3&stationR=$4 [QSA]
RewriteRule ^result/(.+)/(.+)/railway/(.+)/$ /result.php?speciality_id=${spec2id:$1}&pref=$2&lineR=$3 [QSA]
RewriteRule ^result/(.+)/(.+)/railway/$ /result.php?speciality_id=${spec2id:$1}&pref=$2 [QSA]

RewriteRule ^result/(.+)/(.+)/(.+)/(.+)/$ /result.php?speciality_id=${spec2id:$1}&pref=$2&city=$3&town=$4 [QSA,L]
RewriteRule ^result/(.+)/(.+)/(.+)/$ /result.php?speciality_id=${spec2id:$1}&pref=$2&city=$3 [QSA,L]
RewriteRule ^result/(.+)/(.+)/$ /result.php?speciality_id=${spec2id:$1}&pref=$2 [QSA,L]
RewriteRule ^result/(.+)/$ /result.php?speciality_id=${spec2id:$1} [QSA,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, REQUEST_URI, SERVER_PORT

Comments

Apache