php - Wordpress - Ec2 elastic ip is shown instead of domain name in wordpress -


When a user touches

and selecting the Home link from my Elastic IP from EC2 If displayed is displayed. I would like to appear 48 times in the ad bar for nn.ca/48.

Thanks for the help I am a huge Noble.

The home link uses an IP address My guess is that your code is in any way Is using the internal host name server instead, instead of the host name used in the browser to generate this link. You may consider replacing / rather than the entire server name.

By looking at your header, it seems that you are running PHP, my guess is that you have to generate this hostname of this link to $ _ server ['SERVER_NAME'] or $ _ SERVER ['SERVER_ADDR'] , when you should be using $ _ server ['HTTP_HOST'] or you just < Code> / as I mentioned earlier.

I answered the previous question about the difference between these variables:

I hope you find it useful.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -