Their site runs on ExpressionEngine and uses ForceType in the htaccess file to change the name of the file (to “site”). Like this. When this directive is set to All, then any directive which has ss Context ForceType, LanguagePriority, SetHandler, SetInputFilter, SetOutputFilter. If yes, please add the below code in ss file under the account. AddHandler application/ >> Server with php5.

Author: Tak Mit
Country: Cameroon
Language: English (Spanish)
Genre: Photos
Published (Last): 28 January 2009
Pages: 413
PDF File Size: 20.63 Mb
ePub File Size: 19.27 Mb
ISBN: 794-2-45028-185-1
Downloads: 98885
Price: Free* [*Free Regsitration Required]
Uploader: Vudokasa

I use the following in the. In other words, it mimics the behaviour of the old DefaultType directive: All times forvetype GMT What about this in a. Results 1 to 16 of This way, every non-recognized file including files without an extension will be treated as HTML. For complex scripts, you’d usually place this php.

Hiding PHP

Using Apache Mod Rewrite: Oh yea, it gets even better when you play with stuff like the following: Also take note that as opposed to a. Fircetype Sales Chat Chat now with our friendly staff.


Sign up using Email and Password. Rate the quality of htacfess page. Why the IF statements, just use them all. Server Fault works best with JavaScript enabled.

Originally Posted by foobic. By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

This one affects any response that would otherwise be transmitted without a Content-Type header. Say you’re using the above tutorial link and come up to the place where the author talks about the following: This will fail after upgrading to 2. I tried this code, although it works for some reason, frocetype there mistakes in it? Anyone who allows for uploading of files without correctly checking the contents of the uploaded file is asking for trouble no matter what.

Htaaccess found the same answer as kbk.

Now the URLs will look like this: This will catch all files without an extension and process them as PHP. This will make sure that all requests to http: This page was helpful: Sign up using Facebook. The top of the file is meant for custom php. Trust me, it’s an extremely special file, and this is the only way to do it. The same is foecetype with CSS files.


Hiding the fact that you use [x] language isn’t going jtaccess prevent me from bypassing poor security.

.htaccess ForceType alternatives? Making a .js file run as PHP | Web Hosting Talk

For Windows-based HostOptima servers, this is a bit different, and requires the following edit:. The need for the above modification is complex, but only necessary in cases where the first method fails for some unknown reason.

I’m not sure what the best way to correct this is, but here it is Don’t specify any dots, and most htaccesa servers will automatically find your.