serpwings / static-wordpress

Python Library for Static WordPress (Autmated Crawling, Post-Processing and Hosting)
https://static-wordpress-docs.netlify.app/
GNU General Public License v3.0
189 stars 108 forks source link

Deplyoing Website to a Sub directory #31

Closed seowings closed 11 months ago

seowings commented 11 months ago

There are certain use cases, when user wants to deploy their website to a sub directroy e.g. seowings.org/blog.

To achieve this, you need to change following settings. Following settings are for deplyoing to /blog sub directory. You can replace them with your desired sub-directory

1- output folder where you files are extracted. This is important if you are deploying automatically via Github/Netlify CI/CD pipeline. You need to create an evironment variable output with the values output/blog/

image

2- Specify correct destination url in environment variables. For exampe, if you want to host your website on https://seowings.org/blog/ then your dst variable value should be https://seowings.org/blog/

image

3- At your crawler e.g. simply-static settings, under General you should use a proper Path as shown below.

image