One of the lessor known and used capabilities of .htaccess files is the ability to prepend and append includes to every page request. ?Doing so avoids needing to code ?
One of the lessor known and used capabilities of .htaccess files is the ability to prepend and append includes to every page request. ?Doing so avoids needing to code in every template file you wat to use them in. ?Here’s the .htaccess code:
登录后复制
Now don’t mistake this post as me telling you to use this strategy; ?using this functionality creates a layer of indirection that could confuse a team of developers if they don’t all have a grasp of where automatically included files are coming from. ?Just wanted to let you know this was possible!
Read the full article at: Prepend and Append Files with .htaccess