WordPress WooCommerce new site 403 error and page redirects
-
Hi Everyone,
I am NEW to WordPress and am hoping there is someone out there that can help me.
I have set up a new WordPress site on localhost and transferred it to my HostPapa server. I still have work to do and things to test so I made a sub domain staging site and copied everything over.
I set up a new database and changed my config file accordingly.
THE PROBLEM IS:
My WooCommerce store is downloads only, but when I do a stripe test payment everything goes ok until I click on the ‘downloadable product’, my page then gets redirected to my ‘main site’ (which is the same but without staging. in front) and I get a 403 error message which reads:403 ERROR WHEN TRYING DOWNLOAD FILE AFTER PURCHASE [Sun May 09 07:17:06.743165 2021] [access_compat:error] [pid 155126:tid 47867117438720] [client 42.62.233.253:54109] AH01797: client denied by server configuration: /home/xxxxxx/inspirationalartworkonline.com.au/wp-content/uploads/woocommerce_uploads/2021/03/1024-3-im-not-rude-pdf-files-pwpdgv.zip, referer: https://staging.inspirationalartworkonline.com.au/index.php/checkout/order-received/4988/?key=wc_order_fAPs3Np3FxbcG
This is my FIRST website so I am not very technical / knowledgable and a bit nervous ‘messing around’ with code. I have some html/css knowledge.
I have been trawling the forums and internet for solutions and am really struggling to find answers/solutions, I have:
checked .htaccess file, deleted it and created another.
disabled the plugins etc
deleted all of the files in the staging site and replaced with files from main siteI am sure it’s something to do with redirection and things not pointing to the correct path/files but wouldn’t have a clue how to address that
AFTER PURCHASE BUT BEFORE CLICKING DOWNLOAD
https://staging.inspirationalartworkonline.com.au/index.php/checkout/order-received/4999/?key=wc_order_3ETeR4kS5tnV1
Screenshot
https://snipboard.io/r3ACzq.jpgAFTER CLICKING ON DOWNLOAD (not the staging site anymore)
https://inspirationalartworkonline.com.au/wp-content/uploads/woocommerce_uploads/2021/03/A-series_be-bold-strong-brave-pdf-files-lces6y.zip
Screenshot
https://snipboard.io/gGoxr5.jpgBasically I’m stuffed!!
If anyone could give me any tips/help to solve this problem, I would be very grateful.
If I need to provide any further info please let me know.
THANK YOU
Regards
JillyThe page I need help with: [log in to see the link]
- The topic ‘WordPress WooCommerce new site 403 error and page redirects’ is closed to new replies.