I noticed some of you had been struggling with your Oxwall website speed, which sometimes is frustrating. This will boost your site performance by 20 seconds less.
Before we can continue, please be advised that if you have SSL installed
on your main domain, you will also need SSL installed on your subdomains
as well. For you won't be able to transfer files over an unencrypted connection.
Let's get started!
1- From your cPanel create two (2) subdomains, for the sake of best practice let's call them "static" and "userfiles". Your subdomains should point to your main oxwall folder.
http://static.yourdomain.com or https://static.yourdomain.com
http://userfiles.yourdomain.com  /; or https://userfiles.yourdomain.com
2- Make your subdomains a CNAME to your main domain.
3- From your "ow_include" folder open the file name "config.php".
4- Edit line 15 and 16, and remove the OW_URL_ROOT from:
Line15. define('OW_DIR_STATIC', OW_URL_ROOT.'ow_static/'); ===> define('OW_DIR_STATIC', 'http://static.yourdomain.com/ow_static/');
Line 16. define('OW_DIR_USERFILES', OW_URL_ROOT.'ow_userfiles/'); ===> define('OW_DIR_USERFILES', 'http://userfiles.yourdomain.com/ow_userfiles/');
(If you have SSL installed on your subdomains aswell, add https:// )
BEFORE
AFTER
PS:
a) Do not try it on a live site unless you know what you are doing.
b) The changes made in "config.php" might be overwritten with Oxwall updates.
c) The process is 100% safe, proceed with caution.