• I developed a site in a sub directory and followed the instructions given here:
    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    there is a WP site in valleyinstall.com
    I developed the site in
    valleyinstall.com/wpu

    And I very carefully followed each step, However once I change the url in general settings of the wpu directory, then copy the htaccess and index.php into the root, It breaks. I made a backup, but what happens is I can’t get back into the install on the wpu directory. If I go to valleyinstall.com/wpu/wp-admin and enter the credentials for that directory, the url changes to valleyinstall.com/wp-admin and I am given the shaking wrong credentials warning. I can get into the root directory but not the sub-directory. I can see it in my cPanel, but just can’t access it. Please help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • To make it working have you made suitable changes to your database, go to your database manager, Select your database, search for “valleyinstall.com/wpu” and replace it with “valleyinstall.com” ? ?

    When using wordpress from a directory all you need to do is copy index.php file that is in your wpu directory and change line 17 and add your directory so you have

    require(‘./wpu/wp-blog-header.php’);

    and change Site url in settings General to be your root url leave the other as is and reset your permalinks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using a sub directory’ is closed to new replies.