Jump to content

Is there an alt. way of using .htaccess file in IIS?


Recommended Posts

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.

Link to comment
Share on other sites


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][/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 ]

Edited by RexxCrow
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...