WebFaction
Community site: login faq

I’d like to make a static app that uses just the .htaccess file and does not enable php or cgi scripts. What’s the right configuration for this? Is it something I can set in the htaccess file?

asked 09 Feb '13, 11:21

pcoles
1124
accept rate: 0%


You can just add the following lines to disable execution of PHP and CGI scripts:

AddHandler cgi-script .php .pl .jsp .asp .sh .cgi
Options -ExecCGI
permanent link

answered 09 Feb '13, 17:24

waynek
4254
accept rate: 27%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×125
×75
×31

question asked: 09 Feb '13, 11:21

question was seen: 7,788 times

last updated: 09 Feb '13, 17:24

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM