Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Another Wordpress Installation in a Subfolder

Tags:

wordpress

I have a problem in my Wordpress installation. The root folder of my server has a working wordpress application. And then, I created another folder within the root and installed another wordpress. My folder structure is like this

  • ROOT
    • wp-admin
    • wp-content
    • ..........
    • new
      • wp-admin
      • wp-content
      • ..........

So, basically, I have two wordpress installation, one in the root and another in a subfolder. Going to http://example.com, the main wordpress app works without any errors. Going to http://example.com/new, it also works. The problem is, clicking a post inside the new app redirect me to the main app. Clicking a post with a link http://example.com/new/post shows an error page. But that post exists within the new app.

Each app has their own DB

Thanks for responses!

like image 340
freakysquash Avatar asked Aug 31 '12 05:08

freakysquash


People also ask

How do I change the install directory in WordPress?

To do this, log into your WordPress Dashboard and navigate to the Settings > General section. In the field WordPress Address (URL), you need to define the directory where your site's core files are located. While in the Site Address (URL) field, type in the URL you want the site to load with.

Do I need to install WordPress on each subdomain?

If you want to use a subdomain with WordPress, you can either create entirely separate WordPress installs on each subdomain, or you can use a WordPress Multisite network to create separate sites on subdomains that are all powered by the same WordPress install.

Where is WordPress install directory?

If you want to install WordPress on your root domain name (like example.com), then you need to upload WordPress files to your website's root directory. Usually this directory is called /public_html/.


1 Answers

You there is some problem in your permalink. check your permalink or, update your new database , as of now your database fetch values from old database...

like image 140
Shobhit Avatar answered Oct 24 '22 16:10

Shobhit