Forums
Forums / Plugin: Simply Static - The Static Site Generator / wp-content exclude
(@andrebeltrame)
9 years, 2 months ago
When I generate the static files, it’s possible skip the wp-content files? I have 20GB of media files, and I don’t need to export those files in the zip, just the HTML. Thanks!
(@codeofconduct)
Hi andrebeltrame,
This isn’t currently possible, but will be in the next version of Simply Static. That should be out by the end of the year.
Best, Scott
Thanks Scott. Its a great plugin!
(@pierre_02)
Hi andrebeltrame π !
As I don’t want to duplicate all the wp-content part, I use a solution for that :)… You have to get some knowledges on server side :)… You have to create a subdomain on your host pointing to your wp-content folder (eg: /public_html/wp-content). Then, open your wp-config.php file the add this line in it : define(“WP_CONTENT_URL”, “http://cdn.yourdomain.com”); BTW, all the path to your wp-content files will be http://cdn.yourdomain.com/… And as path to your media files will be differents that your website pages (they will get an absolute path differents that your base website because they are pointing to http://cdn.yourdomain.com, not http://yourdomain.com) SS will not add them to your archive ;)…
Hopping it will help you to gain some space :).
Amicably,
Pierre.
9 years, 1 month ago
FYI, v2.0 has been released and includes the option to include parts of URLs, so you could tell it to exclude /wp-content/ and be good to go.
The topic ‘wp-content exclude’ is closed to new replies.