Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-09-16
4
Medium Priority
?
4,884 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
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…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

772 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