Skip to content

Instantly share code, notes, and snippets.

@zahna
Created April 13, 2017 17:15
Show Gist options
  • Save zahna/945ba4c63c66f16127bea869f2bdf4ef to your computer and use it in GitHub Desktop.
Save zahna/945ba4c63c66f16127bea869f2bdf4ef to your computer and use it in GitHub Desktop.
clean url fastcgi apache
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