Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tunneling through ngrok strips wordpress site of styles and theme

I have a wordpress site on an IIS at localhost. To demo the site, I used ngrok to make the site available.

When viewing the site on localhost, everything looks fine. However, when I view the site remotely through the ngrok tunnel, the content appears, but all style & theme elements are lost.

I am not sure what code, configuration or documentation would be helpful for solving this problem.

Any idea why this may be occurring?

like image 507
Ben Avatar asked Apr 27 '15 20:04

Ben


1 Answers

This happens because the links in wordpress are usually absolute, you need to force Wordpress to use relative URLs with one of those plugins:

https://github.com/optimizamx/odt-relative-urls

http://wordpress.org/plugins/relative-url/

like image 113
Pontiacks Avatar answered Oct 06 '22 01:10

Pontiacks