snipt

Ctrl+h for KB shortcuts
Notice: Snipt is moving away from free accounts on May 1st, 2014. Read more about the transition here.
#35779

PHP

wp_siteurl, WP, wordpress

1
2
3
4
Just add the following in wp-config to view site through the IP address, replace example.com with the IP address:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
https://snipt.net/embed/7d250200c78aaa709a65d7bb8e69e9f7/
https://snipt.net/raw/7d250200c78aaa709a65d7bb8e69e9f7/
7d250200c78aaa709a65d7bb8e69e9f7
php
PHP
4
2014-04-22T19:12:21
True
False
/api/public/snipt/35779/
wp_siteurl-wp-wordpress
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span id="L-1"><a name="L-1"></a><span class="x">Just add the following in wp-config to view site through the IP address, replace example.com with the IP address:</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="x">define(&#39;WP_HOME&#39;,&#39;http://example.com&#39;);</span> </span><span id="L-4"><a name="L-4"></a><span class="x">define(&#39;WP_SITEURL&#39;,&#39;http://example.com&#39;);</span> </span></pre></div> </td></tr></table>
wordpress