0

How should I add o a trailing slash from the end of a URL in apache traffic server? all syntax are changed in apache traffic server.

this is a rotin config for add slash in normal apache

your textRewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ $1/ [L,R=301]

  • Does this answer your question? [Htaccess: add/remove trailing slash from URL](https://stackoverflow.com/questions/21417263/htaccess-add-remove-trailing-slash-from-url) – Rob Aug 27 '23 at 12:29
  • Its syntax is very different. It doesn't work, unfortunately https://docs.trafficserver.apache.org/admin-guide/plugins/header_rewrite.en.html#url-parts – Amirhosseinramezan Aug 27 '23 at 12:51

1 Answers1

0

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ $1/ [L,R=301]