Hi
I have created a site with wordpress and today it’s time to publish the site.
This is a renewal site and the old site is not SSLed so this time the new site I made it always SSLed.
Then when I moved the whole site from sub directory to root directory, the site is totally functioned in [https://example.com]) but not functioned in [https://www.example.com]).
When accessing [https://www.example.com]), it shows
” **Warning**: require(\_\_DIR\_\_/wp-blog-header.php) \[[function.require]\]: failed to open stream: No such file or directory in **/home/users/0/……./index.php** on line **17**
**Warning**: require(\_\_DIR\_\_/wp-blog-header.php) \[[function.require]\]: failed to open stream: No such file or directory in **/home/users/0/……./index.php** on line **17**
**Warning**: require(\_\_DIR\_\_/wp-blog-header.php) \[[function.require]\]: failed to open stream: No such file or directory in **/home/users/0/……./index.php** on line **17**
**Fatal error**: require() \[[function.require]\]: Failed opening required ‘\_\_DIR\_\_/wp-blog-header.php’ (include\_path=’.:/usr/local/php/5.2/lib/php’) in **/home/users/0/……./index.php** on line **17** ”
​
Because of the search engine is directing to “www.” one so I have to figured out how to make the new site also accessible with www. But I cannnot find any solution online.
[ad_2]
Look into using an htaccess rewrite rule to strip the www.