wp-config.php redirect from subfolder
-
Hello.
I’ve just gone live with our new build, url is: https://lightbourne.com. I’ve installed WP in a subfolder (/live) I’m receiving errors with some php files looking for wp-config.php after making the site live and moving the config file to the root. Can I run a redirect function or recode the template php files affected? So far the shopping cart is the only issue I’ve found, but I can’t fully test until the cart php file is redirected to root where the wp-config.php is now.
This is the error received: Warning: require(/home/light123/public_html/live/wp-config.php) [function.require]: failed to open stream: No such file or directory in /home/light123/public_html/live/wp-content/themes/lightbourneinc/cart_handler.php on line 7
Fatal error: require() [function.require]: Failed opening required ’/home/light123/public_html/live/wp-config.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/light123/public_html/live/wp-content/themes/lightbourneinc/cart_handler.php on line 7
I’ve been reviewing the forums but haven’t found the same issue with redirect to root from the subfolder.
Thanks for your time!
Best, Shannon
Lightbourne, Inc.
- The topic ‘wp-config.php redirect from subfolder’ is closed to new replies.