apache make access file only internally -


first, not @ english.

when using nginx:

erorr_page 404 /404.html; 

after restart, request server.com/404.html return 200 ok way should. other files return 404 error if file not exists.

then edit this:

error_page 404 /404.html; location = /404.html {    internal; } 

server.com/404.html page return 404. other files return 404 correctly if file not exists.

it not 404 page. 500 internal error page return 200 when access directly.

even php files can use internally.

rewrite ^/index$ /index.php; location ~ \.php$ {    internal;    fastcgi_pass 127.0.0.1:9000;    ... } 

it make server.com/index returns index.php file server.com/index.php return 404 error.

you can find document nginx internal directives @ here: http://nginx.org/en/docs/http/ngx_http_core_module.html#internal

how make file use internally using apache htaccess?


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -