search

Home  >  Q&A  >  body text

php - How to make the wordpress website support IP address and domain name access at the same time?

The website can be accessed directly using the domain name, but I hope that the IP address can also be accessed directly and will not be redirected to the domain name. Is there any way to set it up? The web server is configured with nginx.
Currently, if you access using an IP address, you will be automatically redirected to the domain name.

ringa_leeringa_lee2794 days ago904

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-06-16 09:20:26

    For domain name access, first obtain the corresponding IP through DNS, and then access through IP, so domain name access is equivalent to IP access

    reply
    0
  • Cancelreply