I have one website, for that only error page is displaying for the main url.
e.g.: 404 error page is displayed in www.example.com/123
.
When I go any other pages e.g.: www.example.com/about.php/123
, the error page is not displayed. Only the same page without style sheet is displayed.
Here's my htaccess code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f``
RewriteCond %{REQUEST_FILENAME} !-d
ErrorDocument 404 http://www.example.com/404.php
Please help me to redirect to 404 pages when someone type wrong urls for the pages with the php extension (eg: index.php
, about.php
, contact.php
etc)