There is a issue of unstructured link like (<https://example.com/digital-marketing.php/ercbierubcrei>)

How can I redirect its to main root?

My .htaccess not working, I'm using below code in .htaccess:-

```
RewriteEngine On
ErrorDocument 404 /example.com

```