Solved

How to change domain name in IIS

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

Are end users causing IT problems again?

You’ve taken the time to design and update all your end user’s email signatures, only to find out they’re messing up the HTML, changing the font and ruining the imagery. What can you do to prevent this? Find out how you can save your signatures from end users today.

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

747 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now