Solved

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

Posted on 2011-09-16
4
4,855 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Customizing themes 14 47
WP WooCom Prob 7 30
How do I format the output from WP Rest API? 1 22
wordpress url rewriting plugin 5 11
How to create your own WordPress Theme Before I begin with the theme design tutorial, I would like to give you the basics of what is required to make a WordPress Theme. The most basic WordPress theme only requires 2 files: a style.css file and an…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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. …

743 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

11 Experts available now in Live!

Get 1:1 Help Now