News for hackers. Stuff that matters.
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?)
Re:Link: A fast and simple PHP Router by icedchai on Thursday May 29, 2014 @01:45PM (#7817525)
It is slower, since .htaccess is parsed on every request. (However, it is probably faster than routing through PHP code.)
Re:Link: A fast and simple PHP Router by rdam on Thursday May 29, 2014 @02:41PM (#7817829)
You can reload Apache without a restart (apache2/httpd graceful/reload depending on your distro).