• danielinberlin

    (@danielinberlin)


    I have a WordPress site set up on my domain, https://www.pixsy.com/. I wish to create a German version and have installed the German version of WordPress on a subdirectory, https://www.pixsy.com/de/

    I used a new database for the site but imported all the content for the old one. The site contains the same content as the new site for now– it’s essentially a copy of the main site.

    However, the new site on /de/ returns a 404 Not Found. I am not sure why this is happening– I had the same configuration on an old web host and it worked perfectly.

    What could be causing this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I see the 404 page is generated by the new installation (the html tag contains the lang=”de-DE” attribute). So you should look there. Did you correctly set the URL in the site url and home url options? Did you add the correct .htaccess file to the /de subdirectory (including RewriteBase /de)? Did you set a certain page as homepage which you then removed?

    I think it has to do with the site url and home url since the 404 shows links to your English blog, not to the German version.

    Thread Starter danielinberlin

    (@danielinberlin)

    It looks like WP-HOME and WP-SITEURL were never set to begin with. I was confused because I had searched for these in wp-config.php but didn’t realize I had to them.

    Thanks for the help, Frank! I was frustrated past the point of rational thinking and you got me back on the right track.

    This is the code to add to wp-config.php should anyone have a similar issue in the future:
    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’);

    esmi

    (@esmi)

    It looks like WP-HOME and WP-SITEURL were never set to begin with

    They never are – by default. The only time they are used in wp-config.php is when the site’s url is changed.

    Your welcome. The WP_HOME and WP_SITEURL are not set in the wp-config.php by default. They should be in the database though (wp_options table). You can change them in the settings of WordPress. Be careful though, entering the wrong URL’s there breaks down your website. In that case you can use the method danielinberlin mentioned.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Second WordPress Installation in Subdirectory returns 404 Not Found’ is closed to new replies.