tags:

views:

249

answers:

3

Hy there

Is there any posibility to redirect an URL like "www.mydomain.com/subfolder" to www.mydomain.com"

I'm using a windows server and have the posibility to use IIS7 to do that. Does I need IIS for doing that or is there an easier way?

What I exactly want:

I have installed a CMS on /subfolder, and now the CMS is reachable under "www.mydomain.com/subfolder" but I want to have the CMS under "www.mydomain.com"

How is that possible?

thank's in advance for your help

A: 

Yes, you will need to use IIS - you can just point IIS to use that subfolder as the root of the site in the Basic Settings dialog.

alt text

Mark B
A: 

I'm not that familiar with IIS 7, but what you're searching for can easily be done using mod_rewrite. Of course, mod_rewrite is meant for Apache but there's also a ported version of it for IIS 7. Take a look at URL Rewrite module for IIS7

Best wishes,
Fabian

halfdan
A: 

You want to redirect "www.mydomain.com" to "www.mydomain.com/subfolder", not vice versa.

Defining some rule at the server is probably the fastest option. However, if you do not want to depend on it, you can place an index.htm file at the root with a meta refresh tag in the head that will look like that:

0 is the time until refresh - immediately, and the URL is where to redirect the user.

read more : http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm

EliK