Restructure some files to match new URL structure

This commit is contained in:
Alex Cabal 2024-11-11 11:17:04 -06:00
parent b340c55460
commit ec0b81817d
4 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@ RewriteRule ^/ebooks/(.+?)/download$ /ebooks/download.php?url-path=$1 [QSA]
# Misc ebook rewrites # Misc ebook rewrites
RewriteRule ^/subjects/([^\./]+?)$ /ebooks/index.php?tags[]=$1 [QSA] RewriteRule ^/subjects/([^\./]+?)$ /ebooks/index.php?tags[]=$1 [QSA]
RewriteRule ^/ebooks/([^\./]+?)$ /ebooks/author.php?url-path=$1 [QSA] RewriteRule ^/ebooks/([^\./]+?)$ /authors/get.php?url-path=$1 [QSA]
RewriteRule ^/ebooks/([^\./]+?)/downloads$ /bulk-downloads/get.php?author=$1 [QSA] RewriteRule ^/ebooks/([^\./]+?)/downloads$ /bulk-downloads/get.php?author=$1 [QSA]
RewriteRule ^/ebooks/([^\./]+?)/feeds$ /feeds/get.php?author=$1 [QSA] RewriteRule ^/ebooks/([^\./]+?)/feeds$ /feeds/get.php?author=$1 [QSA]
RewriteRule ^/collections/([^\./]+?)$ /collections/get.php?collection=$1 [QSA] RewriteRule ^/collections/([^\./]+?)$ /collections/get.php?collection=$1 [QSA]
@ -42,4 +42,4 @@ RewriteRule ^/ebooks/jules-verne/twenty-thousand-leagues-under-the-seas/f-p-walt
# Prevent this rule from firing if we're getting a distribution file # Prevent this rule from firing if we're getting a distribution file
RewriteCond %{REQUEST_FILENAME} !^/ebooks/.+?/downloads/.+$ RewriteCond %{REQUEST_FILENAME} !^/ebooks/.+?/downloads/.+$
RewriteCond %{REQUEST_FILENAME} !^/ebooks/.+?/text.*$ RewriteCond %{REQUEST_FILENAME} !^/ebooks/.+?/text.*$
RewriteRule ^/ebooks/([^\.]+?)$ /ebooks/ebook.php?url-path=$1 RewriteRule ^/ebooks/([^\.]+?)$ /ebooks/get.php?url-path=$1

View file

@ -34,7 +34,7 @@ if($exception){
<input type="text" name="automationtest" value="" maxlength="80" /> <input type="text" name="automationtest" value="" maxlength="80" />
</label> </label>
<label>Your email address <label>Your email address
<input type="email" name="email" value="<? if($subscription->User !== null){ ?><?= Formatter::EscapeHtml($subscription->User->Email) ?><? } ?>" maxlength="80" required="required" /> <input type="email" name="email" value="<?= Formatter::EscapeHtml($subscription->User?->Email) ?>" maxlength="80" required="required" />
</label> </label>
<label class="captcha"> <label class="captcha">
Type the letters in the <abbr class="acronym">CAPTCHA</abbr> image Type the letters in the <abbr class="acronym">CAPTCHA</abbr> image