9
I’m having a problem with my .htaccess
, because I used to use .htm
at the end now that I want to bar can not change.
End use .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 generates error and does not open normal
Good afternoon, which error is generated?
– Guilherme Nascimento
It’s going to 404
– rafaeloliveira
Ever tried to put nothing? Without the bar, only the ([A-Za-z-]+)$
– Miguel Neto