Re:Link: A fast and simple PHP Router
by icedchai on Thursday May 29, 2014 @01:31PM
(#7817436)
Put it in .htaccess. No restarts needed.
[ Parent
| on HN ]
Re:Link: A fast and simple PHP Router
by 127001brewer on Thursday May 29, 2014 @01:38PM
(#7817476)
That's correct - I was thinking of using an Apache VirtualHost file. (Isn't using the .htaccess file slower(?) than using the VirtualHost file?)
It is slower, since .htaccess is parsed on every request. (However, it is probably faster than routing through PHP code.)