Created
April 13, 2017 17:15
-
-
Save zahna/945ba4c63c66f16127bea869f2bdf4ef to your computer and use it in GitHub Desktop.
clean url fastcgi apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I forget this snippet too much... | |
DirectoryIndex index.html index.php | |
AcceptPathInfo On | |
SuexecUserGroup user group | |
RewriteEngine On | |
# FastCGI PHP | |
<Files *.php> | |
SetHandler fcgid-script | |
#AddHandler fcgid-script .php | |
Options +ExecCGI +FollowSymLinks -MultiViews | |
FcgidWrapper /usr/local/bin/php-fcgi.sh .php | |
RewriteCond %{REQUEST_URI} !=/index.php | |
RewriteRule ^ /index.php [QSA,L] | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment