Install new WP in subdirectory, cannot complete due to 404 error at URL
-
I am trying to install a second instance of WordPress in a subdirectory in iPage to use as a test site. My issue is that I get a 404 error when I attempt to access the URL for the subdirectory (main-site.com/subdirectory-name), so I am unable to complete the new installation.
The first instance of WordPress was installed directly in the root directory, so I’ve made a new folder within the root directory for my new WordPress installation.?
I have tried this several different times using several different methods I have found. Here’s the latest I have tried: https://www.ipage.com/help/article/wordpress-how-to-manually-install-using-file-manager
I have already successfully:?
- downloaded WordPress to my local computer
- created a new subdirectory, uploaded WordPress to the new subdirectory and unzipped it
- created a new MySQL database and connected it to the new WordPress instance with the wp-config.php file
My new WordPress upload did not contain a .htaccess folder, so I created one in the new subdirectory. After a lot of trial and error, the current contents of my newly-created .htaccess folder are:?
# BEGIN WordPress (RewriteEngine Off) - removed this now RewriteEngine On RewriteBase /subdirectory-name/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /subdirectory-name/index.php [L] # END WordPress
I’ve already double checked the permissions and cleared my cache/cookies. I keep seeing advice to check the site URL, but how can I access the settings of the new WP instance if I cannot complete the setup?
My points of uncertainty are:
- Have I created the new folder in the correct location?
- Am I attempting to access the correct URL? (main-site.com/subdirectory-name)
- Was it correct to create my own .htaccess file directly in my new subdirectory? And are the contents correct?
- Something with permalinks or WordPress URL/Site URL?
I am unfamiliar with WordPress and iPage so I am not confident in the file structure I’m dealing with. I also do not have access to Settings or Plugins in the existing WP site, so I’m trying to get as much clarity as possible before I bother the Admin.
Any pointers would be greatly appreciated. Thank you in advance!?
The page I need help with: [log in to see the link]
- The topic ‘Install new WP in subdirectory, cannot complete due to 404 error at URL’ is closed to new replies.