How can you use a .htaccess file on a Windows server running IIS?
Main Topics
Browse All TopicsWe need to allow register_globals for a few domains. the register_globals is a PHP_INI_PERDIR so it's not able to be set via Windows registry. What other options do we have?
We're running IIS on Windows 2003 with PHP 5.2
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
im not an expert but I do think an htaccess is for apache only... IIS might have a workaround but an htaccess I dont think its the way...
Try looking in the registry for something like this:
[HKLM\SOFTWARE\PHP\Per Directory Values\C\Inetpub\vhosts\do
And see if you have a value like:
"register_globals"="on"
Did you check variables_order?
http://www.php.net/manual/
The default is "EGPCS".
Business Accounts
Answer for Membership
by: routinetPosted on 2008-03-04 at 15:19:17ID: 21046200
The meaning of those constants is shown here:
en/ini.php #ini.list
http://www.php.net/manual/
Note the second entry:
Constant Value Meaning
PHP_INI_USER 1 Entry can be set in user scripts or in Windows registry
PHP_INI_PERDIR 2 Entry can be set in php.ini, .htaccess or httpd.conf
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
PHP_INI_ALL 7 Entry can be set anywhere
You can set the item through the use of an .htaccess file.