masi4ka Posted January 23, 2016 Report Share Posted January 23, 2016 Всем привет)может кто подскажет как сделать так что бы при просмотре кода показывало типа так. Вот так есть <script type="text/javascript" src="/templates/Default/js/profile.js"></script> а что бы было вот так <script type="text/javascript" src="/js/profile.js"></script> Подскажите пожалуйста добрые люди Link to comment Share on other sites More sharing options...
alexivanov a.k.a proxxamma Posted January 23, 2016 Report Share Posted January 23, 2016 Папку с js перенести в корень сайта, и везде указать этот путь Link to comment Share on other sites More sharing options...
masi4ka Posted January 23, 2016 Author Report Share Posted January 23, 2016 Папку с js перенести в корень сайта, и везде указать этот путь только так? а что бы скрыть путь не как? Link to comment Share on other sites More sharing options...
myfreed Posted January 23, 2016 Report Share Posted January 23, 2016 только так? а что бы скрыть путь не как? смотри как выводится {theme}, по аналогии сделай для {js}. Путь будет {js}/***.js Link to comment Share on other sites More sharing options...
viiprogrammer Posted January 23, 2016 Report Share Posted January 23, 2016 только так? а что бы скрыть путь не как? в .htaccess RewriteRule ^/system_files(/?)+$ /templates/Default$1 [L] И будет так /system_files/js/.... +1 2 Link to comment Share on other sites More sharing options...
masi4ka Posted March 16, 2016 Author Report Share Posted March 16, 2016 я так понемаю так же и с стилями,пишу в маин <link media="screen" href="system_files/style/style.css" type="text/css" rel="stylesheet" /> и не пашет Link to comment Share on other sites More sharing options...
viiprogrammer Posted March 20, 2016 Report Share Posted March 20, 2016 я так понемаю так же и с стилями,пишу в маин <link media="screen" href="system_files/style/style.css" type="text/css" rel="stylesheet" /> и не пашет RewriteRule ^/system_files(/?)+$ /templates/Default$1 [L] прописал? Link to comment Share on other sites More sharing options...
masi4ka Posted March 21, 2016 Author Report Share Posted March 21, 2016 да в .htaccess RewriteRule ^/system_files(/?)+$ /templates/Default$1 [L] потом в main.tpl <link media="screen" href="system_files/style/style.css" type="text/css" rel="stylesheet" /> и не работает(((может не так что делаю Link to comment Share on other sites More sharing options...
kolyan22region Posted March 21, 2016 Report Share Posted March 21, 2016 да в .htaccess RewriteRule ^/system_files(/?)+$ /templates/Default$1 [L] потом в main.tpl <link media="screen" href="system_files/style/style.css" type="text/css" rel="stylesheet" /> и не работает(((может не так что делаю После RewriteEngine On писал? Link to comment Share on other sites More sharing options...
masi4ka Posted March 21, 2016 Author Report Share Posted March 21, 2016 После RewriteEngine On писал? да Link to comment Share on other sites More sharing options...
masi4ka Posted March 23, 2016 Author Report Share Posted March 23, 2016 поможет кто? Link to comment Share on other sites More sharing options...
Recommended Posts