Solved

How to change domain name in IIS

Posted on 2012-03-31
2
711 Views
Last Modified: 2012-06-27
Dear All,

Environment is as follows:

1) Windows Server 2008
2) IIS 7.5
3) PHP 5.x
4) MySql 5.x
5) WordPress 3.x

I created one wordpress website for intranet, host name was backupserver, created all the pages and setup them correctly.

Now I wanted to rollout the intranet site for domain users, I wanted to give it a name as "MyCompanyIntranet", I took following steps:

1) Added a Host record in DNS
2) Edit the Bindings in IIS for the website and added a Virtual Host as "MyCompanyIntranet"

I faced two issues with this:-

a) I had to flush my dns to be able to ping new host record created in DNS. Not sure, how can I do it for all users in my domain without restarting their PCs or without running the command ipconfig /flushdns

b) NOw when I type in my browser "MyCompanyIntranet", it displays my intranet website, but when I click on any Link in the website, it shows as "http://backupserver/?page_id=8", how can I get rid of page address "backupserver"? Do I have to play with WordPress PermaLinks?

Thanks for any replies in advance.
0
Comment
Question by:tayyabq8
2 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 250 total points
ID: 37791309
For b) you don't need to pay with permalinks but rather with Settings | General to make sure you have the right domain name entered and also with the database.  Wordpress has a bad habit of writing full URLs to various tables and when you change the base URL in settings, those tables may not update.

There are several plugins for Wordpress that will do a search and replace on all tables and you can use those to fix this links.
0
 
LVL 2

Assisted Solution

by:robdl
robdl earned 250 total points
ID: 37792936
DNS should update itself every 15 minutes so no intervention should be required. You can also do a HTTP redirect within IIS to the proper URL, it's pretty straightforward.

http://technet.microsoft.com/en-us/library/cc770409(v=ws.10).aspx
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cannot see all of hard drive on HP Server 7 45
Inactive computer in domain 7 66
Run ColdFusion website locally 1 21
SSL Certificate for IIS7 Site 2 21
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
The purpose of this video is to demonstrate how to Import and export files in 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 : Click on Too…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

803 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