Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Instruct server to display source code for dynamic file types


Code Snippet </> Info


Snippet Name: Instruct server to display source code for dynamic file types

Description: There are many situations where site owners may wish to display the contents of a dynamic file rather than executing it as a script. To exercise this useful technique, create a directory in which to place dynamic files that should be displayed rather than executed, and add the following line of code to the .htaccess file belonging to that directory.

Note: This method is known to work for .pl, .py, and .cgi file-types.

Author:

Last Modified: 2014-05-18 18:34:28

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

# Remove Handler RemoveHandler cgi-script .pl .py .cgi


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library