Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: web.config redir301 and default page configurations

16 Mar 2012   #1
atomicc

Win XP 32b
 
 
web.config redir301 and default page configurations

Hello, folks.
I need to config the webserver on my hosting provider.

How to config the web.config (IIS 7)
A) to redir www.olddomain.com to www.newdomain.com (redir 301)
B) make www.olddomain.com/index.php the default page (because it contains PHP code to redir to www.newdomain.com/index.html)
C) make www.newdomain.com/index.html the default page
D) any error 404 redir to www.newdomain.com/index.html

Any ideas?
Thanks in advance
Atomicc


My System SpecsSystem Spec
.

16 Mar 2012   #2
z3r010

 

You need to have the URL rewrite module installed in IIS, the following article explains how to do most of it - Using the URL Rewrite Module : URL Rewrite Module : Installing and Configuring IIS 7 : The Official Microsoft IIS Site

I dont normally send people to other sites but you will get more specialist help at the IIS forums - URL Rewrite Module : The Official Microsoft IIS Site
My System SpecsSystem Spec
16 Mar 2012   #3
atomicc

Win XP 32b
 
 

My hosting provider says that the URL rewrite module is installed in IIS, but I do'nt know how to config it. I've seen many replies to threads in this forum giving the exact code to web.config and I would like it too, if possible.
My System SpecsSystem Spec
.


Reply

 web.config redir301 and default page configurations




Thread Tools





Similar help and support threads
Thread Forum
Can I change the print page range default to page 1 instead of all?
Hello, ecologists, economists, and efficiency experts: Can I change the default print dialog on IE to use page range of 1 (first page) instead of all (the current default)? 98% of the pages I print to paper in a browser only require the first page being printed. Those 5-15 pages of...
Browsers & Mail
Changing memory page default
When trying to load a new program that needs 16MB of RAM I get a message saying I don't have enough RAM. I currently have 132984MB of unused RAM. If I change my memory paging default numbers to 199476 and 265968 would that work OK? It is currently at 5686-5686 set by a McAfee tech for a different...
General Discussion
Can't get into router config page.
Hi, I have a NetCommWireless router model NB604N. I had issues getting into the router configuration page (192.168.1.1) using the default user name and pw admin/admin. I have tried hard reset but all that did was got rid of my wireless and the admin/admin will still wont let me in. ...
Network & Sharing
Page default on non paged area BSOD
Second BSOD on almost 2 year old computer when I played a video on MLB What was weird it said page fault in non paged area. Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7601.2.1.0.256.48 Locale ID: 1033
BSOD Help and Support
Can't open page in Default program
I have the default program (bluevoda.exe) set to open .bvp files. When I click on a .bvp file it will open the program to a blank page. It will not open the page though. I must go thru the File - Open - and then find the file I want to open. In XP, it would open the page but Windows 7 does...
General Discussion
gpedit.msc default config.
hey all few months ago i went to gpedit.mcs and to "computer configuration,windows settings, security settings,local policies,security options" and ****ed around in there trying to get my external hd using samba software to play movies/music over lan. And now i cant remember witch settings i...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 21:38.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App