Add bar at end of htaccess URL

Asked

Viewed 9 times

-1

Interning in a company I’m helping to migrate a site to PHP due to the site racking with Google the urls need to finish with the bar, but we ran into some problems, in htaccess this way:

<IfModule mod_rewrite.c>
  Options -Indexes

  RewriteEngine On
  RewriteCond $1 !^(index\\.php|resources|robots\\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ index.php?/$1 [L,QSA]
</IfModule>

Adicionamos as seguintes linhas:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/$
RewriteRule . %{REQUEST_URI}/ [L,R=301]

But as we click on the links they are embedded the url without deleting the previous one. I would like help to resolve this problem.

No answers

Browser other questions tagged

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