mirror of
https://github.com/standardebooks/web.git
synced 2025-07-21 06:45:14 -04:00
Add newsletter management functionality
This commit is contained in:
parent
90ee0a93c9
commit
b0197d189a
57 changed files with 1017 additions and 143 deletions
|
@ -142,10 +142,9 @@ Define webroot /standardebooks.org/web
|
|||
# In RewriteCond, RewriteRule gets evaluated BEFORE RewriteCond, so $1 refers to the first
|
||||
# match in RewriteRule
|
||||
# Rewrite POST /some/url -> POST /some/url/post.php
|
||||
RewriteCond %{REQUEST_METHOD} ^POST$
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/ -d
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/post.php -f
|
||||
RewriteRule ^([^\.]+)$ $1/post.php [L]
|
||||
RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^(post|delete|put)$/"
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/%1.php -f
|
||||
RewriteRule ^([^\.]+)$ $1/%1.php [L]
|
||||
|
||||
# In case of 404, serve the 404 page specified by ErrorDocument, not the default FPM error page.
|
||||
# Note that we can't use `ProxyErrorOverride on` because that catches ALL 4xx and 5xx HTTP headers
|
||||
|
@ -243,6 +242,10 @@ Define webroot /standardebooks.org/web
|
|||
# If we ask for /opds/all?query=xyz, rewrite that to the search page.
|
||||
RewriteCond %{QUERY_STRING} ^query=
|
||||
RewriteRule ^/opds/all.xml$ /opds/search.php [QSA]
|
||||
|
||||
# Newsletter
|
||||
RewriteRule ^/newsletter$ /newsletter/subscribers/new.php
|
||||
RewriteRule ^/newsletter/subscribers/([^\./]+?)/(delete|confirm)$ /newsletter/subscribers/$2.php?uuid=$1
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80>
|
||||
|
|
|
@ -141,10 +141,9 @@ Define webroot /standardebooks.org/web
|
|||
# In RewriteCond, RewriteRule gets evaluated BEFORE RewriteCond, so $1 refers to the first
|
||||
# match in RewriteRule
|
||||
# Rewrite POST /some/url -> POST /some/url/post.php
|
||||
RewriteCond %{REQUEST_METHOD} ^POST$
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/ -d
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/post.php -f
|
||||
RewriteRule ^([^\.]+)$ $1/post.php [L]
|
||||
RewriteCond expr "tolower(%{REQUEST_METHOD}) =~ /^(post|delete|put)$/"
|
||||
RewriteCond %{DOCUMENT_ROOT}/$1/%1.php -f
|
||||
RewriteRule ^([^\.]+)$ $1/%1.php [L]
|
||||
|
||||
# In case of 404, serve the 404 page specified by ErrorDocument, not the default FPM error page.
|
||||
# Note that we can't use `ProxyErrorOverride on` because that catches ALL 4xx and 5xx HTTP headers
|
||||
|
@ -242,4 +241,8 @@ Define webroot /standardebooks.org/web
|
|||
# If we ask for /opds/all?query=xyz, rewrite that to the search page.
|
||||
RewriteCond %{QUERY_STRING} ^query=
|
||||
RewriteRule ^/opds/all.xml$ /opds/search.php [QSA]
|
||||
|
||||
# Newsletter
|
||||
RewriteRule ^/newsletter$ /newsletter/subscribers/new.php
|
||||
RewriteRule ^/newsletter/subscribers/([^\./]+?)/(delete|confirm)$ /newsletter/subscribers/$2.php?uuid=$1
|
||||
</VirtualHost>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue