Site icon Hip-Hop Website Design and Development

Take away particular characters in a URL

I want a assist to stop particular characters in URL & it ought to redirect to 404 error web page, if anybody particularly entered characters. I attempted a few methods by .htaccess however none of them labored.

Anticipated URL:

http://www.instance.com/ar/shop-listing/health-beauty/

however nonetheless I can see the web page if I entered like

http://www.instance.com/ar/shop-listing/health-beauty~@/#$&&&%%$%3Cscriptpercent3E/

Can anybody counsel an answer to strategy this difficulty?