htaccess and database conneciton pretty successfully
if someone typed www.example.com/dsadsada it showed an error page
if someone typed www.example.com/news/dsadsa it's also showed an error page
but when someone typed www.example.com/news/besthotelinthearea2019/dsadsadsadsa it doesn't showed an error page, it still displaying the best hotel in the area 2019 news but with no css, how can redirect it to 404 error ?
Thank you very much
and this is currently the code that is on my .htaccess
RewriteEngine on
ErrorDocument 404 /error.php
ErrorDocument 300 /error.php
RewriteRule ^index.html$ / [R=301,L]
RewriteRule ^(.*)/index.html$ /$1/ [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
RewriteRule ^news/([0-9a-zA-Z_-]+) news.php?url=$1 [NC,L]
RewriteRule ^sectioncategory/([0-9a-zA-Z_-]+) sectioncategory.php?category=$1 [NC,L]