I have to redirect my shopping cart directory to Root now.
to be redirected to Root now
/mens/t-shirts/ => index.php?c=13
My solution is like this and it works,
RedirectMatch 301 /shop/(.*) /$1
RewriteRule ^mens/t-shirts/$ index.php?c=13 [L]
Final URL: example.com/mens/t-shirts/ which backend loads example.com/index.php?c=13
May I ask if these 2 sentences is the MOST efficient way?
Is there a way to combine into 1 line of coding instead of 2?