Article ID: 324064 - Last Review: November 21, 2006 - Revision: 4.2 HOW TO: Migrate .Htaccess Data in a UNIX-to-Windows MigrationThis article was previously published under Q324064 On This PageSUMMARY
You can use the .Htaccess files to set individual properties and configuration settings for a folder. If you do so, you do not have to modify the full configuration file. You can configure some of these settings in Internet Information Services (IIS); however, you must use the main Internet Services Manager snap-in to change other settings. This article describes how to migrate .Htaccess settings to IIS. Limiting Access by IP AddressThe .Htaccess file uses the Order, Allow, and Deny directives to limit access by Internet Protocol (IP) address or domain name.To limit access according to IP address or domain name in IIS:
Configuring Authentication SettingsTo configure the authentication settings for a folder or a file, you must migrate the user and group information to the Windows 2000-based server.To configure authentication settings:
Configuring Folder SettingsYou can use the Options directive in Apache Directory directives and .Htaccess files to configure folder-specific settings. To grant the Execution permission for CGI on a folder in IIS, (CGI is equivalent to the ExecCGI option in Apache):
Configuring the Default Folder FileTo change the list of default documents or their preference order in the same way that you do with the DirectoryIndex directive in an .Htaccess file:
Redirecting URLsThe .Htaccess file uses the Redirect directive to redirect a file or folder to another URL, for example:Redirect /old_file.html
You can either use Internet Services Manager to redirect a URL or you can create the Default.asp folder in the folder to which you want to redirect the URL. http://www.domain.com/new_folder/new_folder.html To use Internet Services Manager:
Response.Redirect /old_file.html http://www.domain.com/new_folder/new_file.html REFERENCESFor additional information about how to redirect files and folders, click the article number below
to view the article in the Microsoft Knowledge Base:
324000
(http://support.microsoft.com/kb/324000/EN-US/
)
HOW TO: Redirect URLs to Alternative Web Sites
For additional information about limiting access to a folder by IP address or configuring authentication settings, click the article number below to view the article in the Microsoft Knowledge Base: 324066
(http://support.microsoft.com/kb/324066/EN-US/
)
HOW TO: Restrict Site Access by IP Address or Domain Name
324222
(http://support.microsoft.com/kb/324222/EN-US/
)
HOW TO: Migrate User and Group Information
324068
(http://support.microsoft.com/kb/324068/EN-US/
)
HOW TO: Set IIS Permissions for Specific Objects
For additional information about securing IIS for migrating from UNIX to Windows, click the article number below to view the article in the Microsoft Knowledge Base: 324216
(http://support.microsoft.com/kb/324216/EN-US/
)
HOW TO: Secure IIS in a UNIX-to-Windows Migration
APPLIES TO
| Article Translations
|

Back to the top
