I have .htaccess
rewriting the URLs and a submenu being dynamically created and I need one of these links to open on a different URL / page than the rest.
You're like this:
RewriteRule conheca/(.+)/(.+)/$ conheca.php?id=$1&slug=$2
I need the specific case conheca/2/equipe-pastoral/
to be directed to equipe-pastoral.php
and not to conheca.php
, as is the case with the remaining URLs.
Using
RedirectMatch 301 conheca/2/equipe-pastoral/$ page_diferente.php
It has been able to distinguish itself from the others, however, error 500 even happens to page_diferente.php
existing.