Solved

Can't Get WordPress to Work on Windows IIS in Site Subdirectory

Posted on 2011-09-16
4
4,858 Views
Last Modified: 2012-05-12
Hi, we are trying to get WordPress 3.0 to install and work under an existing IIS website so that it comes up under a subdirectory when browsing the site like:  http://www.site.com/blog

We are using the Microsoft Web Platform Installer and have tried two different installs of WordPres.  The first time through, when trying to intstall to an existing site, the platform installer doesn't let us put in a path to choose the subdirectory, so it won't proceed.  So we choose 'new site' and then changed the path to be in a new subdirectory called /blog/ under the websites root directory.  This install won't work at all - nothing in WordPress will load - we can't get the config page to come up after install - all "page not found" errors in IIS even navigating directly to http://192.168.4.34/blog/index.php or http://192.168.4.34/blog/wp-admin/admin.php - pages cannot be found.  It's like IIS cannot find or run any wordpress/php pages in this site.

So we ran the Platform Installer again, chose another new site, and this time chose 'default site' (wasn't being used in IIS) and let it install to localhost in inetpub.  After the install, WordPress will come up and we can configure it, and browse and use wordpress in localhost.

So now our problem is how do we get http://site.com/blog to point to that working install?  I tried creating a virtual directory in IIS for the correct site, point it to the wordpress install on localhost, set default document to index.php, but same problem as above, when browsing to site.com/blog (the virtual directory) - the pages cannot be found.

We need to figure out best way to install and get WordPress working in subdirectory of an IIS site - the main website uses aspx and .net, and I know WordPress is running on PHP.  Wondering if this is causing a conflict in the IIS settings for the one site.

Thanks for any help on getting this working quickly and with best practices so the two can live together seamlessly and the blog can be accessed within the main site easily in a subdirectory.
0
Comment
Question by:masterbeat
  • 3
4 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 36549181
From my experience, WordPress - and most other CMS sites - have to be installed at the root level. This means, you cannot have mysite.com/blogs, it HAS to reside at mysite.com/.

So... what this means to you? Simply make a subdomain of blogs.mysite.com/ and make that your WP site.
0
 

Author Comment

by:masterbeat
ID: 36549198
Sorry, but this isn't correct - many people have it working, and there are various posts about using IIS virtual directories or redirect/rewrites to get it to work on one server, under a subdirectory, yet all of the posts are just a bit out of our grasp of understanding and we need a bit more help with it.  A subdomain is not desired, we need a subdirectory for our configuration.  It IS possible, we're just missing something.
0
 

Accepted Solution

by:
masterbeat earned 0 total points
ID: 36549244
It appears we have solved the problem - it was simple after all, PHP wasn't added as an extension/script in IIS for the old website, hence 'file not found' for all PHP extensions.   Once adding .php to executables in application, WordPress is co-existing happily in the subdirectory using PHP while the root site is using aspx.

Thanks!
0
 

Author Closing Comment

by:masterbeat
ID: 36572259
We figured out the issue was .php extension.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now