Trying to tunnel local WordPress install through Ngrok does not load images and cannot go into subfolders

[ad_1]

I have a local WordPress site that I set up using laragon and installed directly under the www folder without putting it into a project folder underneath it. The site worked and everything was ok

Then I attempted to set to Ngrok to create a public URL I could use to work on the site while I'm away. I set up the port forwarding and wp-config.php correctly as stated in here https://ngrok.com/docs/using-ngrok-with/wordpress/ (replaced –url with –domain as it appears –url is no longer a command). This allowed me to load my site from outside my network through the URL (using a static free URL provided by Ngrok). However none of the images would load and referred to their localhost URL

I fixed them referring to their localhost URL by updating the WordPress database wp-options keys directly with the Ngrok URL. The images still do not load despite the links correctly presenting them when inspected

I have been unable to fix the images loading issue, and have found additional issues in that wp-admin cannot load remotely and the site redirects to https://localhost/wp-admin when I try, the Ngrok agent (the terminal) does not show that an attempt to grab the wp-admin folder was made, and I am unable to edit through localhost/wp-admin on the machine itself as it redirects to the Ngrok URL for the admin login page but stripped of all CSS

I have been trying to fix this for 2 days. I am at a loss

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer