Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 39308

bcworkz on "Able to access admin dashboard but not able to access site"

$
0
0

You can't readily substitute something else for $_SERVER['HTTP_HOST'] because it is in numerous locations through out the WP core files.

I should have mentioned this earlier, somehow I thought it was mentioned already... answering too many threads I guess. In wp-config.php, enter the following:

define('WP_SITEURL', 'http://www.ndsu.edu/pubweb/nrg');
define('WP_HOME', 'http://www.ndsu.edu/pubweb/nrg');

Assuming WP is installed in /nrg/, if not, add in whatever path to get to WP. If that doesn't work, it will take something unorthodox to get WP working, like $_SERVER['HTTP_HOST'] = 'http://www.ndsu.edu/pubweb/nrg'; in wp-config.php instead. I'd be surprised if that doesn't throw an error. May need to finagle the server configuration somehow less obvious, such as putting that last line in its own file named override.php (be sure the initial <?php is in the file too). Then in the .htaccess file (this is all in the WP installation folder btw) insert:
php_value auto_prepend_file ./override.php

I hope one of those works, because I don't know enough about overriding server configurations to make any other suggestions. I think you can now see what needs to happen, someone that knows more about this may have a workable suggestion.


Viewing all articles
Browse latest Browse all 39308

Trending Articles