• Resolved morrisdl

    (@morrisdl)


    Ok, I have done this to myself, and I am frustrated … and stumped.

    Background.
    I have a local install of WordPress running behind NAT.
    I have two sites running on a QNAP storage unit which uses Apache.
    The sites are hosted in separate directories with WordPress installed in both subdirectories.
    – Web/site1
    – Web/site2
    QNAP offers a virtual host function wherein:
    http://www.xxx.org is mapped to web/site1
    http://www.yyy.org is mapped to web/site2
    I recently installed the “Sitemap Generator for Webmasters” plugin and generated a sitemap. I also installed the “WordPress SEO” and was starting to optimize my sites.

    Problem.
    Both sites were functioning but I had gotten some complaints that people trying to access the “yyy” site could not get to the site unless they typed the full address “www.yyy.org” as compared to just entering “yyy.org” so, I thought I would try changing the WordPress and Site URLs by removing the “www.” prefix.
    I failed… I could not open the site and therefore read the “Changing The Site URL” page in the Codex and edited the wp-config.php file to correct the problem by hardcoding the proper entries so that I could get back in. I used the following.
    define(‘WP_HOME’,’http://www.yyy.org’);
    define(‘WP_SITEURL’,’http://www.yyy.org’);
    I am able to get back into the site using http://www.yyy.org/wp-login.php but, if I just enter http://www.yyy.org on my local system, the system redirects to the empty root with a placeholder page that displays NAS – Main Web Server. External access seems to be working in that when I turn off WIFI on my phone and access the site using 4G, the site comes up properly.
    My other site, http://www.xxx.org is functioning normally and is viewable by remote and local users.
    I would like to correct this internal system access problem because it makes it difficult to quality control the site. I do not know if data created by the “Sitemap Generator for Webmasters” or “WordPress SEO” plugins may be causing my issues but, I have regenerated the sitemap and I have deactivated both plugins and it has not resolved the problem.
    Any help is greatly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morrisdl

    (@morrisdl)

    As additional information, I believe the problem centers around the homepage which in my case is a reuse of the “About this Site” page. I use this static page as the starting point. Of interest, if I provide a fully qualified path to somewhere on the site, (www.yyy.org/category/news/) content is displayed and things work fine. As soon as I click on the Home link I am sent back to the NAS – Main Web Server message that comes from the root web server.
    I continued to be puzzled but, am interested in your thoughts. Of note, I have also searched through the database and cannot find any issues. I also substituted a different page as the homepage and had the same problem.

    Thanks

    Thread Starter morrisdl

    (@morrisdl)

    My Bad…

    Problem, lack of knowledge on how IE 11 functions. I seems that even though I had cleared the cache on the PC, deleted history, there was still a pull down list of URLs available on the address bar. That, along with having autocomplete turned on immediately defaulted my entry to the yyy.org entry when I was typing http://www.yyy.org.

    I do not know which “Changing The Site URL” step corrected my problem.

    I do not know whether I will be able to successfully assign a URL without the www. prefix

    … and at this point do not have the time to mess with it.

    Thank you for your patience.

    Thread Starter morrisdl

    (@morrisdl)

    done

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress and Site URL problem’ is closed to new replies.