Forum Moderators: phranque
I have a folder on my web server with a couple of thousand html files. I now realize I need to include a JavaScript function call and each file as the browser loads these files.
Is there anyway, with htaccess and/or mod_rewrite that I can include an external JavaScript file each time a page is loaded.
Thanks
Donal
Welcome to WebmasterWorld [webmasterworld.com]!
I think you'll need to look for a good multi-file editor. For all practical purposes, .htaccess works at the http request level and not at the file-access level. You'll need to add an "include" function to each of your pages. You can use either an external javascript include, or use SSI to include any type of text-based file in each page.
Jim