php - Apache is not returning 404 error for non existing URL -


here want

if entered link not exist ,then should throw 404 error page of webhost,but returning 200.

www.example.com/wrong_page.php --> should throw error 404 is throwing 200 right now.i see same page www.example.com/index.php

what might have gone wrong ? there configuration needed done in htaccess.php ? please

most have existing rewriting rule in effect, all.

something redirects requests /index.php quite common thing in web applications. such index script acts router, processing all requests. serves central entry point , simplifies define structure of implemented engine.

so should existing internal rewriting rules inside http servers host configuration or in dynamic configuration file (".htaccess").


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -