Hello I want to create a local sandbox for my wordpress and keep the exact same hostname than my hosting server; so when I re-upload all and the database everything stays 1:1.
I can't do it via hosts file in windows because I need a different port than 80 and don't want to set wordpress site url to something like mydomain.com:8080
I've tried set it up with FoxyProxy with some regex rules: I.E. redirect mydomain.com -> 192.168.0.x port: 8080
Eveyrhting works except wordpress: It creates this 301 infinite redirect and final url looks like so:
http://mydomain.comhttp//mydomain.comhttp//mydomain.com (note the missing colons on the next ones)
One of the header looks like so:
Status Code:301 Moved Permanently Remote Address:192.168.0.10:80
Referrer Policy:no-referrer-when-downgrade Response Headers view
source Content-Length:2 Content-Type:text/html; charset=UTF-8
Date:Wed, 16 Aug 2017 06:19:11 GMT
Server:Apache/2.4.18 (Ubuntu) Request Headers view source Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8
Accept-Encoding:gzip, deflate
Accept-Language:en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4
Cache-Control:no-cache Host:mydomain.comhttp Pragma:no-cache
Proxy-Connection:keep-alive Upgrade-Insecure-Requests:1
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64)
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90
Safari/537.36
I am out of options here. Thanks!