CakePHP + Nginx dan .htaccess

One thought on “CakePHP + Nginx dan .htaccess”

  1. salam kenal bRo, saya lagi testing phpmotion di nginx, u/ setup nya berhasil tinggal di htaccess nya nih bersalamah hehehe. untuk location ~ /\.ht fungsinya apa yah.?
    saya bingung di konfigurasi

    order allow,deny
    allow from all

    Options +FollowSymlinks
    RewriteEngine On

    RewriteBase /

    RewriteRule \.(css|jpe?g|gif|png|flv|swf)$ – last;
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^/members/(.?)$ /people [R=301]
    RewriteCond %{QUERY_STRING} (\<||>) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    RewriteCond %{QUERY_STRING} SELECT(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} UNION(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteRule ^(.*)$ index.php [F,L]

    Options -Indexes

    SecFilterEngine Off
    SecFilterScanPOST Off

    ErrorDocument 403 /403.php
    ErrorDocument 404 /404.php

    Cara nerjemahin ke nginx nya gmn.?
    mohon pencerahan nya..

Leave a Reply

Your email address will not be published. Required fields are marked *