NOTE: Please note that the following workarounds will not work until we remove the hybrid feature on August 31st, 2012
FURTHER NOTE: This article is written for our Classic Cloud Control Panel. You can access this interface from the New Cloud Control Panel by clicking your username in the upper-right of the control panel and selecting "Classic Cloud Control Panel".
The Rackspace Cloud Sites product has historically given customers the ability to set up a hosting environment in which customers serve Windows/IIS applications from a Linux/PHP based site and vice versa. Cloud Sites will be removing this ability to host disparate technologies, as we are changing our technology options. These technology option changes will allow us to release new changes more quickly. Please refer to the scenarios below for rewrite help.
Running a single CMS or application on your site, but this application is running on an inappropriate sites technology. (example: Wordpress, which is intended for Linux, running on a .NET site technology).
Solution. Simply change your technology selection in the Classic Cloud Control panel. On the website features tab, change your site to the appropriate technology selection to match your application.
Please ensure that you are only running a single application on this site and ensure that the application is running on the appropriate technology.
Running more than one, disparate CMS/Application on your site, and these applications have different default technologies, one that is an IIS and one that is PHP/Perl/Python.
Solutions:
If you are currently running IIS files (.asp, .aspx, etc) on your PHP site, you will need to create a new site (either a new domain or a subdomain) with Windows/IIS as the default technology. You will then need to move the IIS files over to this new domain or subdomain. Once this is finished, you will need to setup a rewrite on the main PHP site via an .htaccess file to redirect any IIS files to the new site. An example is given below:
RewriteRule ^(.+)\.asp$ http://www.iisexample.com/$1.asp [R=301,NC]
If you are currently running PHP files (.php, etc) on your IIS site, you will need to create a new site (either a new domain or a subdomain) with Linux/PHP as the default technology. You will then need to move the PHP files over to this new domain or subdomain. Once this is finished, you will need to setup a rewrite on the main IIS site via a web.config file to redirect any PHP files to the new site. An example is given below:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect PHP Request" stopProcessing="true">
<match url=".*\.php" />
<action type="Redirect" url="http://phpexample.com/{R:0}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
If you are currently running a PHP based blog on your IIS based website (Drupal, Magento, etc) within a blog directory, you can use the following redirect to redirect any requests to www.domain.com/blog/*.php to your new domain (ie blog.domain.com):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect Blog" stopProcessing="true">
<match url="^blog(.*)\.php" />
<action type="Redirect" url="http://blog.testingphpstuff.com{R:1}.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>© 2011-2013 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

5 Comments
What about the sites which
Please confirm
Hello Satish,
These sites will not be affected. Your ability to use alternative database solutions will not be impacted by these changes. Only the ability to have both IIS and Apache running on the same site will change.
Thank you,
Mark D.
Cloud Sites Support
Main Cloud Account running PHP & ASP websites
http://www.rackspace.com/knowledge_center/comment/1590#comment-1
Thanks for the comment. In this instance you won't have to make any changes.
Problems with web.config files
Add new comment