Solved

How to change domain name in IIS

Posted on 2012-03-31
2
714 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
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…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

808 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