I have a div
whose content is refreshed through AJAX upon a button click. The function is on every of my pages, so I put the javascript and the generating PHP into http://mydomain.net/foo.js and http://mydomain.net/foo.php, resp.
This works fine for pages in my main domain, but when I try to add the functionality for pages in http://subdomain.mydomain.net nothing is written. I'm pretty sure the cause is that foo.js
and/or foo.php
are not in the subdomain.
Is there a way to make this work in all my subdomains without having it to copy each time? Probably in .htaccess
?