Project Infrastructure: Difference between revisions
Jump to navigation
Jump to search
Line 234: | Line 234: | ||
RewriteCond %{ENV:REDIRECT_STATUS} ^$ | RewriteCond %{ENV:REDIRECT_STATUS} ^$ | ||
RewriteRule ^(.+/.*) /packages/$1 [L] | RewriteRule ^(.+/.*) /packages/$1 [L] | ||
# FIXME: Trailing slash is not appended for (non-existing, to be | |||
# re-written) package directories at top level. This should be cured | |||
# in a better way than with the following. | |||
RewriteCond %{ENV:REDIRECT_STATUS} ^$ | |||
RewriteCond %{REQUEST_FILENAME} !-f | |||
RewriteRule ^(.+) /packages/$1/ [L] | |||
<FilesMatch "\.(php|css)$"> | <FilesMatch "\.(php|css)$"> |