I have the following .htaccess
that has worked perfectly so far:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^es/guarapari/empresas/([0-9]+)/([[a-z0-9-]+)/?$ empresas.php?id=$1&nome=$2&cidade=100 [NC]
RewriteRule ^es/guarapari/empresa/([0-9]+)/([[a-z0-9-]+)/?$ detalhes.php?txt=$1&nome=$2&cidade=100 [NC]
RewriteRule ^es/guarapari\/?$ cidade.php?cidade=100 [L]
</IfModule>
However, I have the following form:
<form action="pesquisa.php" method="get" name="pesquisarguia">
<input type="text" name="consultarguia" placeholder="Localizar empresa" required="required" class="frm-campos">
<input class="inenviar" type="submit" value="Buscar">
</form>
Every time I do a search it gives 404 error because I use Friendly URL.
What inclusion should I make in .htaccess
to make my search work?