rareyush Posted August 8, 2018 Share Posted August 8, 2018 Hey, I know how things work in wordpress but when it comes to processwire, I don't know how I'll achieve this. I want to use a subdomain for files folder in processwire, anyone has any idea how to achieve this? Link to comment Share on other sites More sharing options...
louisstephens Posted August 8, 2018 Share Posted August 8, 2018 There are a few discussions in the forums regarding this, but I don't think any of them gave a definite solution. @teppo also created a module about 5 years ago for relocating assets. However, I am not sure regarding the compatibility with the latest processwire versions. https://github.com/teppokoivula/PageRenderRelocateAssets You might also want to look at the AIOM+ module for processwire which has domain sharding (for CSS, LESS, JS, and html). 1 Link to comment Share on other sites More sharing options...
dragan Posted August 8, 2018 Share Posted August 8, 2018 I don't want to start a discussion here, but imho cookieless domains are way overrated. If you use AIOM, gzip, use cache wisely, etc. chances are you won't see any noticeable difference. 1 Link to comment Share on other sites More sharing options...
eutervogel Posted April 18, 2019 Share Posted April 18, 2019 Hey, I have freshly installed the module and for some reason I get some issues which I don't understand. As you can see below, after aiom/ the domain is cut off. Where is the dani? GET https://www.danielholte.de/site/assets/aiom/elholte.de/site/templates/img/play_back.png 404 (Page Not Found) This is how I've done: <link rel="stylesheet" type="text/css" href="<?php echo AllInOneMinify::CSS(array('css/main-' .$style .'.css', 'css/grid.css', 'css/pm-icons.css', 'css/fontawesome.css', $config->urls->FieldtypeComments . 'comments.css', 'css/overwrite.css')); ?>"> <script src="<?php echo AllInOneMinify::JS(array('js/jquery.min.js', 'js/main.js', 'js/isotope.pkgd.min.js', 'js/jquery.magnific-popup.min.js', 'js/jquery.mousewheel.js', 'js/jquery.jscrollpane.min.js', $config->urls->FieldtypeComments .'comments.min.js')); ?>"></script> This is such a strange issue, that I don't know where to start investigation. Thanks in advance PS: Just saw that my Post is totally wrong here. Sorry. Please move. I think it must be related to ../ This is my original css: .pm_menu_mobile_toggler { width: 27px; height: 22px; background: url("../img/icons-light/retina/pmicon-073.png") no-repeat center; background-size: 27px 22px; display: inline-block; position: relative; top: 6px; } and this is what comes out: .pm_menu_mobile_toggler { width: 27px; height: 22px; background: url("elholte.de/site/templates/img/icons-light/retina/pmicon-073.png") no-repeat center; background-size: 27px 22px; display: inline-block; position: relative; top: 6px; } Allow Directory Traversal in Options is hooked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now