Remove "/" bar from end of url with htaccess

Asked

Viewed 580 times

1

I wish my Url worked as much with "/" at the end as without it via htacces did so

URL FRIENDLIES

#aqui ignoramos o uso de barra no final
RewriteRule ^home$ index.php [NC,L]
RewriteRule ^sobre(.*)(/|)$ sobre.php [NC,L]
RewriteRule ^agenda(.*)(/|)$ agenda.php [NC,L]
#RewriteRule ^agenda/([^/]*)(.*)(/|)$ /curso.php?id=3&nome=$1 [L]
RewriteRule ^agenda/([a-z0-9-]+)-([0-9]+)/?$ curso.php?id=$2&curso=$1 [NC]

The problem is that this way it ignores the parameters passed in the Url.

How can I do ?

  • Similar question to this one: http://answall.com/a/105708/4793. For Laravel, however, the answer I posted there is suitable for both Laravel and any other use.

  • you are using some framework or the site is structured?

No answers

Browser other questions tagged

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