How do I place an htaccess friendly url in the place I want?

Asked

Viewed 158 times

1

I’m using this code:

RewriteRule ^editar/candidato=([0-9]+)&admin=([0-9]+)/?$ http://localhost/MeuSite/candidatoeditar.php?candidato=$1&id=$2 [QSA,NC,L]

But I’d like the link to stay that way:

^editar?candidato=([0-9]+)&admin=([0-9]+)/?$

How to do this?

  • Ever tried to add a backslash to escape the character ? after the "edit"?

  • htaccess does not accept this

No answers

Browser other questions tagged

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