php - Execute an adittional script before access a location in apache -


i want run script before locations specified in <location> ca accessed :

<location "/add-content">  # run /var/www/abc/custom-script.php first  # continue load actual page </location> 

i have many websites having url in server, can't done in application level.

can in apache?

you'll want set handler:

<location "/add-content">     # run /var/www/abc/custom-script.php first     # continue load actual page     action pre-script /var/www/abc/custom-script.php     sethandler pre-script </location> 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -