Moved WP from Root to Sub Directory and Now Prevent Hotlinks Not Working
-
Hello again,
I hope everyone is doing fine!
I just recently moved all WordPress documents from my root directory to a sub folder called test. As such, to access my site one must type: https://www.mydomainname.com/test.
However, using Google Developer tools, I noticed every time I click on any of my pre-installed plugins like updraftplus backups or the Appearance tab, I get a “GET red 403 error” specifically for a img pr .png URL request. As a result, the image icons including your plugin’s banner that shows the feature difficulty and security points break. These image icons either are blank with a white color or show a “malnourished” image with an x symbol.
After spending countless hours, I discovered having the prevent hotlinking option enabled is the actual culprit to the best of my knowledge. As soon as I disable this option and do an empty cache and hard reload on my Google Chrome browser, these 403 messages vanish.
When I renable the prevent hotlinking option I don’t get these errors again for the very same plugins or sections in WP I originally had errors on. It’s as if I need to first click through all my WP features, plugins, and settings while having the prevent hotlinking option enabled and Google Developer tools opened; then encounter the 403 error for the image URLS; then disable hotlinking; then renable hotlinking and boom the 403s go away.
Please note I never had this problem with my original WP setup residing on https://www.mydomainname.com
My concern is if I download more plugins in the future, I would have to reperform this vicious cycle of labor.
Do you know why the hotlinking feature is causing such errors?
Thank you very much for always responding and your assistance!
All my best,
Joe
- The topic ‘Moved WP from Root to Sub Directory and Now Prevent Hotlinks Not Working’ is closed to new replies.