I'm having a problem with my .htaccess
, since I previously used .htm
at the end now that I want to by bar I can not change.
Usage with .htm
query string :
##### Url Dinamica ###################################
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
# Exibe a pagina com a extensao em .htm
RewriteRule ^([A-Za-z-]+)\.htm$ index.php?tag=$1 [qsappend]
</ifModule>
I tried to use
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)$ /$1/ [R=301,L]
RewriteRule ^([A-Za-z-]+)\$ index.php?tag=$1/ [qsappend]
But it generates error and does not open normal