Next.js: Difference between revisions

Line 18: Line 18:
<pre>
<pre>
# Using a redirect
# Using a redirect
@pathWithSlash path_regexp dir ^(.*)/$
@pathWithSlash path_regexp dir ^(.*/.*)/$
redir @pathWithSlash {re.dir.1}
redir @pathWithSlash {re.dir.1}
# Using a rewrite
# Using a rewrite
uri strip_suffix /
uri strip_suffix /
</pre>
</pre>