Project

General

Profile

« Previous | Next » 

Revision 8472

web/.htaccess: auto-add trailing / if not external redirect (limited form of DirectorySlash). this allows URLs without trailing /, for dirs which have a special external redirect to the datasource's homepage when there is no trailing /, but still auto-adds the trailing / for all other dirs.

View differences:

.htaccess
53 53
RewriteCond %{REQUEST_FILENAME} !-F
54 54
RewriteRule ^(.*/)?index$ $1 [discardpath,noescape,qsappend]
55 55

  
56
# auto-add trailing / if not external redirect (limited form of DirectorySlash)
57
RewriteCond $0 -F
58
RewriteRule ^/.*$() $1 [discardpath,noescape,last,redirect,qsappend]
59
	# ^/: dir without trailing / is provided as an absolute filesystem path
60

  
56 61
## specific to /
57 62

  
58 63
RewriteCond %{ENV:innermost_dir} =/

Also available in: Unified diff