Trailing slash

Post Reply
dudaz
Jr. Bludit
Posts: 1
Joined: Thu Jul 22, 2021 12:19 pm

Hi there,

I'm trying to make / at the end of all URLs. How is shown in this article https://planet-bludit.ch/update-und-mig ... -einer-url

Code: Select all

AddDefaultCharset UTF-8

<ifmodule mod_rewrite.c="">

# Enable rewrite rules
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

</ifmodule>

Has anyone else encountered this problem? on the board apache, docker 20.10.7
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

dudaz wrote: Fri Jul 23, 2021 7:01 pm I'm trying to make / at the end of all URLs. How is shown in this article https://planet-bludit.ch/update-und-mig ... -einer-url
I have no idea why this no longer works. I deleted the entry.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
Post Reply