I'm sorry if I'm repeating a question, but I can't seem to solve this looking at other answers :(
I have a FORM with GET action:
<form action="tag" role="form" method="get">
Which contains a search input named "q"
What I want is that when I submit the form, the URL displayed in the navigation bar is:
http://localhost/web/tag/dress
Instead, of
http://localhost/web/tag?q=dress
In my .htaccess I have
RewriteRule ^tag/([0-9a-z]+)/?$ index.php?tag=$1 [L]
Which works fine when I access directly to:
http://localhost/web/tag/dress
All I want is the form to take me to this clean URL instead of using the ?q= parameter in the navigation bar.
Any suggestions?
A simplified version of my .htaccess is:
ErrorDocument 404 http://localhost/web/#404
RewriteEngine on
RewriteRule ^index.html index.php [L]
###TAG
RewriteRule ^tag/([0-9a-z]+)/?$ index.php?seccion=home&tag=$1[L]
###USER PROFILE
RewriteRule ^([0-9a-z]+)/?$ index.php?seccion=profile&user=$1 [L]