Specific Rewriterule case for a URL

Asked

Viewed 114 times

2

I have a .htaccess rewriting Urls and a submenu being created dynamically and need one of these links to be opened in another URL/page other than the rest.

It’s like this:

RewriteRule conheca/(.+)/(.+)/$ conheca.php?id=$1&slug=$2

I need the specific case conheca/2/equipe-pastoral/ is directed to equipe-pastoral.php and not to the conheca.php, as is the case with the remaining Urls.

Using

RedirectMatch 301 conheca/2/equipe-pastoral/$ page_diferente.php

she managed to distinguish herself from the others but happens error 500 even the page_diferente.php existing.

inserir a descrição da imagem aqui

1 answer

4


  • I was able to solve with the help of this post: http://stackoverflow.com/questions/11691916/removaing-php-file-extension-from-the-end-of-a-url I think I was wrong to do the rewrite to remove. php of links. Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.