The above code was hosted on Apache Web Server and was working fine. And Now we have hosted the application in windows 2008 Server with IIS7. But we are unable to define the above settings in IIS. new-arrival,best-seller,bargain-buys.. are name of files.
They are not file extension.
Can any one help me to define the above MIME type in IIS. Thanks in advance to all.
Hi! Yes I have php installed in the server and php files are running. But there are some files without any extemsion, and the codes in .htaccess file to force type them to open as php file. But I need to know how can I set my IIS to process as my above code.
You can add this to the MIME types. Make sure you enter a "." in the extension box, then specifiy application/x-httpd-php in the MIME Type box. That should provide the functionality you are trying to mimic.
IIS is by default interpreting book in that URL as a directory. I am not aware of a way to change that functionality but will poke around and see what I am able to find.
Yes, I think so but I wonder when same can be implemented in tomcat without much effort, but how IIS missed such am usefull thing. I would be highly greatful if I get a way to implement the same.
Mindkeytech
5 Posts
Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 14, 2013 06:45 AM|LINK
Hi!
I have a .htaccess file with following code
<Files new-arrival>
ForceType application/x-httpd-php
</Files>
<Files best-seller>
ForceType application/x-httpd-php
</Files>
<Files bargain-buys>
ForceType application/x-httpd-php
</Files>
<Files coming-soon>
ForceType application/x-httpd-php
</Files>
The above code was hosted on Apache Web Server and was working fine. And Now we have hosted the application in windows 2008 Server with IIS7. But we are unable to define the above settings in IIS. new-arrival,best-seller,bargain-buys.. are name of files.
They are not file extension.
Can any one help me to define the above MIME type in IIS. Thanks in advance to all.
terridonahue
473 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 14, 2013 04:28 PM|LINK
Hi,
Have you installed PHP on your server? Also, what are the file extensions associated with the files?
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
Mindkeytech
5 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 14, 2013 05:53 PM|LINK
terridonahue
473 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 14, 2013 06:39 PM|LINK
You can add this to the MIME types. Make sure you enter a "." in the extension box, then specifiy application/x-httpd-php in the MIME Type box. That should provide the functionality you are trying to mimic.
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
Mindkeytech
5 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 16, 2013 02:28 PM|LINK
Hi!
I have tried but it did not worked. My URL is like this:
mydomain.com/books/book/bookname/isbn-1234/zb,,2ad,a,0,INR,0,a/index.html
where books is a folder & book is a php file. I want that IIS should treat book as a file (without any extension) and run it as book.php
If I change the URL a bit and add .php after the book it works perfectly fine.
mydomain.com/books/book.php/bookname/isbn-1234/zb,,2ad,a,0,INR,0,a/index.html
I just want to know how can I make IIS to handle book( file without extension) with php.
Thanks
terridonahue
473 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 21, 2013 02:53 PM|LINK
IIS is by default interpreting book in that URL as a directory. I am not aware of a way to change that functionality but will poke around and see what I am able to find.
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
Mindkeytech
5 Posts
Re: Pls Help!!How to implement .htaccess MIME Type in IIS
Mar 21, 2013 05:01 PM|LINK