WordPress.org

Ready to get started?Download WordPress

Forums

run wordpress on LAN (3 posts)

  1. skyoyugi
    Member
    Posted 3 years ago #

    My website looks OK on localhost, but on LAN it looks like its designed using basic HTML. Anyone to help me get round this??

  2. but on LAN it looks like its designed using basic HTML

    Check your Site URL via Settings -> General, you are probably still pointing to localhost or 127.0.0.1.

  3. s_ha_dum
    Member
    Posted 3 years ago #

    Give your webserver a static IP, then use that IP as the WordPress Address and Site Address in wp-admin->General Settings. I've been doing that for years with no issues. And don't hardcode 'localhost' or '127.0.0.1' anywhere in your themes or plugins. You can use 'localhost' or '127.0.0.1' in wp-config.php for your MySQL contact data if the MySQL server is on the same machine as PHP and Apache.

Topic Closed

This topic has been closed to new replies.

About this Topic