htaccess

iqbalmp nginx-forum at nginx.us
Fri Aug 24 17:28:18 UTC 2012


http://winginx.com/htaccess
resulted :

=====================
# nginx configuration

index index.php;

charset off;

location ~ /(media|skin|js)/ {
}

location /api {
  rewrite ^/api/rest /api.php?type=rest break;
}

location / {
  if (!-e $request_filename){
    rewrite ^(.*)$ /index.php break;
  }
}

location /RELEASE_NOTES.txt {
  deny all;
}

================
But I already have a 'location' settings in my nginx.conf:
========================
 location / {
      root   /var/www/html;
      index  index.php index.html index.htm;
       fastcgi_param  REDIRECT_STATUS    200;
    }
===================
how can i merge both of this?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230106,230109#msg-230109



More information about the nginx mailing list