Symfony without a slash at the tail
Most-frequently asked question in the channel for symfony:
- how to get rid of the slash on the end of the URL DoctrineRouteCollection
- why not take the last slash
- etc. in the same vein
So you just a snippet of advice:
# To avoid trailing slash problem
"RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]"
Scientific value of the snippet does not represent, but the question really often ask) so that “search and ye shall find”))
Have fun!
About deepak
Name:Deepak Kumar
Country:India
Education:B.Tech(Mechanical Engg.), MBA(Information Technology)
Expertise:ISO, CMMI, ITIL, SQA, SQC, Web Development, Business & System Analysis, Business Process Analysis & Design, E-Business(B2B,B2C), Information Management & Strategy.
Technologies:PHP, CSS, JAVA,AJAX, MySQL, Oracle etc.
Interested In:Quality Assurance, Freelance Web Development, System Analysis & Friends
This entry was posted in
Symfony. Bookmark the
permalink.