This is my rule:
RewriteRule ^([^/]+)(/.+)? /negocio$2.php?shopURL=$1 [L,QSA]
If $2
doesn't exist (URL doesn't have two slashes), I want to echo '/' instead of '.php'. So the condition becomes:
RewriteRule ^([^/]+)(/.+)? /negocio/?shopURL=$1 [L,QSA]
How do I do this or archive the same result?