A
A
Alex Smith2016-07-29 16:47:30
PHP
Alex Smith, 2016-07-29 16:47:30

How to use .htaccess to connect a js script from a file to all your domains?

There is a js script main.js. There is a list of domains on one server:
folder domen1.ru
folder domen2.ru
folder domen3.ru
folder domen4.ru
folder xxx
How to connect main.js to all domains without getting into each index.html of each domain?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Андрей Павленко, 2016-07-29
@Akdmeh

Никак. Нужно залезать в файл и редактировать их.

Андрей Minisol, 2016-07-29
@AmadeyMinisol

посмотрите в сторону директивы auto_append_file
вот дока php.net/manual/ru/ini.core.php#ini.auto_append_file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question