htaccess
iqbalmp
nginx-forum at nginx.us
Fri Aug 24 15:21:25 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,230108#msg-230108
More information about the nginx
mailing list