I am trying to hide the /watch/ from the following link:
url = localhost/main/example.com/watch/web-portfolio/
So that it appears like:
url = localhost/main/example.com/web-portfolio/
I've tried searching through the net but couldnot find the solution. I've tried following:
RewriteCond %{THE_REQUEST} \ /+watch/
RewriteRule ^watch/(.*)$ /$1 [L,R=301]
Also tried
RewriteRule ^((?!watch/).*)$ watch/$1 [NC,L]
And others too but didn't work.