Support » Fixing WordPress » Change URL, Main Site Functional, Subfolders Not

  • Resolved b4sher


    Hey everyone…
    Recently I installed wordpress on a ubuntu server and my url was “”. I could access it, even got SSL up and running with it. So before the URL change, everything was working fine.
    My goal was to change it so the url was “” and have everything working from there. So I edit my apache files and redirect the root directory to /var/www/wordpress and a2ensite the apache files. Then I added to my wp-config.php file the following:


    I change my SQL database url value and home value to reflect the changes. I restart apache and mysql and I can get to my site at “”. Once I try to log in, it says the page cannot be found (404). Just to make sure my folders are right…I added a simple index.html file in the wp-admin folder and navigated to it at “” and it display the index.html file fine. So I believe there is a setting in WP that I am overlooking. I went through the instructions on the site and some various other sites with no avail. All links on the site work except the Login link. Any suggestions?

    For example:
    The requested URL /wp-login.php was not found on this server.

    I appreciate your help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change URL, Main Site Functional, Subfolders Not’ is closed to new replies.