Remove trailing /connect string using htaccess (301 redirect)

domain.com/x/connect
domain.com/x/y/connect
domain.com/*/connect

I'm trying to remove the trailing /connect and redirect to the URL excluding the /connect.

Can someone please provide the correct htaccess code for this? I've tried but nothing works.



from Recent Questions - Stack Overflow https://ift.tt/2O2bpT6
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations