How to Setup Local LAN Web Site Testing

If it’s a WordPress site don’t forget to change the .htaccess base directory if you’re using the ip address… i.e. for 192.168..1.1/wpsite/….

# BEGIN WordPress

RewriteEngine On
RewriteBase /wpsite/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wpsite/index.php [L]

# END WordPress

Accessing Websites on a Local Network (LAN) Web Server

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>