MSFN Forum: Is there an alt. way of using .htaccess file in IIS? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Is there an alt. way of using .htaccess file in IIS? Rate Topic: -----

#1 User is offline   RexxCrow 

  • Group: Members
  • Posts: 6
  • Joined: 18-November 06

Posted 18 November 2006 - 06:38 PM

Apparently IIS does not work with .htaccess files, I get only an HTTP 500 error when accessing that directory, I discovered this attempting to work on a dynamic sig for PHP forums, I am curious if there is another way to mock this or a work around all together? Thanks.


#2 User is offline   RexxCrow 

  • Group: Members
  • Posts: 6
  • Joined: 18-November 06

Posted 21 November 2006 - 02:01 PM

For those that would like an answer for this, I got some outstanding assistance, (via another forum BTW.) :whistle:

[ QUOTE ] the .htaccess is the file that IIS won't like. All you have to do is change sig.jpg to sig.php and link to it in forums by:

[CENTER][URL="HTTP://WebsiteAddress.EXT/Directorie(s)/FileName.EXT"][IMG]HTTP://WebsiteAddress.EXT/Directorie(s)//Sig.PHP[/IMG][/URL][/CENTER]


If forums won't allow that as an image, you'll have to change what your server thinks of .jpg files. Set it to parse them as php.

To do this in IIS you need to (as far as I know):

open IIS
right click on the folder containing your sig.jpg file
select 'properties'
click on the 'http headers' tab
click 'file types' in the 'MIME map' section
add a new type with

Associated extension: .jpg
Content type (MIME): application/x-httpd-php [ /QUOTE ]

This post has been edited by RexxCrow: 21 November 2006 - 02:03 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy