Renaming a Domain IIS 7 Issue
When you rename a domain in Plesk 9.x and the server is using IIS 7, a bug often causes Plesk to change the .NET version to 1.1. This causes a ripple effect because IIS won’t be able to open the default.aspx page. Note: If you are a dedicated server customer, you can follow these steps and make the appropriate changes yourself. If you are a shared hosting client, you will need to open a ticket with the support department letting them know you changed your domain name in Plesk and your site no longer loads. Dedicated server clients can follow the steps below.
Change the .NET Framework Version in IIS
Fix the Handler Mappings
- Open IIS Manager by clicking on Start > All Programs > Administrative Tools > Internet Information Services Manager (IIS).
- In the Application Pools section, locate the renamed domain.
- If .NET Framework Version is 1.1, right click on the pool and choose Advanced Settings.
- Change it to v4.0 (or 2.0) If you are unsure what version you were running check the web hosting settings in Plesk to verify which version of .NET framework the site utilizes.
If you get a 404 error when trying to load the page, it is because the handler mappings are incorrect.
You should also modify the original domain to the renamed domain in the hosts file (C:\Windows\System32\drivers\etc\hosts) so your browser will be able to look for it locally on the server.
- First, back up the web.config file or copy the Handlers section to clipboard.
- Click on Start > Run > c:\.
- Navigate to inetpub\vhosts\[domain]\httpdocs
- Open the web.config file, select the information in the Handlers section and copy it.
- Then, in the sites section of IIS, double click on the renamed domain.
- Double-click on the Handler Mappings icon.
- In the Actions section. Choose Revert To Parent. It should fill the main window with information.
- Finally, you will need to restore the saved web.config file because clicking revert to parent will remove vital sections of the web.config file.
- Open the web.config file for the renamed domain.
- Paste the Handlers section back in after the Modules section.
- Save the web.config file and browse the renamed site to test it.
Article ID: 382, Created: April 9, 2012 at 1:46 PM, Modified: June 9, 2015 at 10:16 AM