Welcome! Log In Create A New Profile

Advanced

How can add trailing slash if I have two or more subdirectories ?

March 04, 2012 05:50PM
Problem to add trailing slash if I have two or more subdirectories

rewrite ^/([^.]*[^/])$ $1/ permanent; //this is working example if I have one directory

http://example.com/foo/ (with trailing slash, conventionally a directory)
http://example.com/foo (without trailing slash, conventionally a file)


How can add trailing slash if I have two or more subdirectories ?

http://example.com/foo/foo2/
http://example.com/foo/foo2
Subject Author Posted

How can add trailing slash if I have two or more subdirectories ?

Sputnik March 04, 2012 05:50PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready