Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
The purpose of this video is to demonstrate how to insert an Iframe into 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 : Open Page or Post…
This video teaches users how to migrate an existing Wordpress website to a new domain.

813 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

13 Experts available now in Live!

Get 1:1 Help Now