Skip to content

Commit 089b92a

Browse files
committed
Merge branch '4.0' into 'main'
2 parents 9f9cdc8 + ad7b067 commit 089b92a

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

.docker/nginx/default.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ server {
6767
rewrite ^/bookmarks.html$ /index.php?action=bookmarks last;
6868

6969
# PMF faq record page
70-
rewrite ^/content/([0-9]+)/([0-9]+)/([a-z\-]+)/(.+).html$ /index.php?action=faq&cat=$1&id=$2&artlang=$3 last;
70+
rewrite ^/content/([0-9]+)/([0-9]+)/([a-z\-_]+)/(.+).html$ /index.php?action=faq&cat=$1&id=$2&artlang=$3 last;
7171

7272
# PMF category page with page count
7373
rewrite ^/category/([0-9]+)/([0-9]+)/(.+).html$ /index.php?action=show&cat=$1&seite=$2 last;
@@ -76,10 +76,10 @@ server {
7676
rewrite ^/category/([0-9]+)/(.+).html$ /index.php?action=show&cat=$1 last;
7777

7878
# PMF news page
79-
rewrite ^/news/([0-9]+)/([a-z\-]+)/(.+).html$ /index.php?action=news&newsid=$1&newslang=$2 last;
79+
rewrite ^/news/([0-9]+)/([a-z\-_]+)/(.+).html$ /index.php?action=news&newsid=$1&newslang=$2 last;
8080

8181
# PMF sitemap
82-
rewrite ^/sitemap/([^\/]+)/([a-z\-]+).htm(l?)$ /index.php?action=sitemap&letter=$1&lang=$2 last;
82+
rewrite ^/sitemap/([^\/]+)/([a-z\-_]+).htm(l?)$ /index.php?action=sitemap&letter=$1&lang=$2 last;
8383

8484
# PMF Google sitemap
8585
rewrite ^/sitemap.xml$ /sitemap.xml.php last;

nginx.conf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ server {
8181
rewrite ^/bookmarks.html$ /index.php?action=bookmarks last;
8282

8383
# PMF faq record page
84-
rewrite ^/content/([0-9]+)/([0-9]+)/([a-z\-]+)/(.+).html$ /index.php?action=faq&cat=$1&id=$2&artlang=$3 last;
84+
rewrite ^/content/([0-9]+)/([0-9]+)/([a-z\-_]+)/(.+)\.htm(l?)$ /index.php?action=faq&cat=$1&id=$2&artlang=$3 last;
8585

8686
# PMF category page with page count
8787
rewrite ^/category/([0-9]+)/([0-9]+)/(.+).html$ /index.php?action=show&cat=$1&seite=$2 last;
@@ -90,10 +90,10 @@ server {
9090
rewrite ^/category/([0-9]+)/(.+).html$ /index.php?action=show&cat=$1 last;
9191

9292
# PMF news page
93-
rewrite ^/news/([0-9]+)/([a-z\-]+)/(.+).html$ /index.php?action=news&newsid=$1&newslang=$2 last;
93+
rewrite ^/news/([0-9]+)/([a-z\-_]+)/(.+).html$ /index.php?action=news&newsid=$1&newslang=$2 last;
9494

9595
# PMF sitemap
96-
rewrite ^/sitemap/([^\/]+)/([a-z\-]+).htm(l?)$ /index.php?action=sitemap&letter=$1&lang=$2 last;
96+
rewrite s^/itemap/([^\/]+)/([a-z\-_]+).htm(l?)$ /index.php?action=sitemap&letter=$1&lang=$2 last;
9797

9898
# PMF Google sitemap
9999
rewrite ^/sitemap.xml$ /sitemap.xml.php last;
@@ -107,16 +107,16 @@ server {
107107
rewrite ^/tags/([0-9]+)/([0-9]+)/(.+).htm(l?)$ /index.php?action=search&tagging_id=$1&seite=$2 last;
108108

109109
# PMF tags page
110-
rewrite ^/tags/([0-9]+)/([^\/]+).htm(l?)$ /index.php?action=search&tagging_id=$1 last;
110+
rewrite tags/([0-9]+)/([^\/]+).htm(l?)$ /index.php?action=search&tagging_id=$1 last;
111111

112112
# Authentication services
113-
rewrite ^/services/webauthn(.*) /services/webauthn/index.php last;
113+
rewrite services/webauthn(.*) /services/webauthn/index.php last;
114114

115115
# User pages
116-
rewrite ^/user/(ucp|bookmarks|request-removal|logout|register) /index.php?action=$1 last;
116+
rewrite user/(ucp|bookmarks|request-removal|logout|register) /index.php?action=$1 last;
117117

118118
# Administration API
119-
rewrite ^/admin/api/(.*) /admin/api/index.php last;
119+
rewrite admin/api/(.*) /admin/api/index.php last;
120120

121121
# Administration pages
122122
rewrite ^/admin/(.*) /admin/index.php last;

phpmyfaq/.htaccess

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
116116
# the bookmarks page
117117
RewriteRule ^bookmarks\.html$ index.php?action=bookmarks [L,QSA]
118118
# phpMyFAQ faq record page
119-
RewriteRule ^content/([0-9]+)/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)$ index.php?action=faq&cat=$1&id=$2&artlang=$3 [L,QSA]
119+
RewriteRule ^content/([0-9]+)/([0-9]+)/([a-z\-_]+)/(.+)\.htm(l?)$ index.php?action=faq&cat=$1&id=$2&artlang=$3 [L,QSA]
120120
# phpMyFAQ category page with page count
121121
RewriteRule ^category/([0-9]+)/([0-9]+)/(.+)\.htm(l?)$ index.php?action=show&cat=$1&seite=$2 [L,QSA]
122122
# phpMyFAQ category page
123123
RewriteRule ^category/([0-9]+)/(.+)\.htm(l?)$ index.php?action=show&cat=$1 [L,QSA]
124124
# phpMyFAQ news page
125-
RewriteRule ^news/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)$ index.php?action=news&newsid=$1&newslang=$2 [L,QSA]
125+
RewriteRule ^news/([0-9]+)/([a-z\-_]+)/(.+)\.htm(l?)$ index.php?action=news&newsid=$1&newslang=$2 [L,QSA]
126126
# phpMyFAQ sitemap
127-
RewriteRule ^sitemap/([^\/]+)/([a-z\-]+)\.htm(l?)$ index.php?action=sitemap&letter=$1&lang=$2 [L,QSA]
127+
RewriteRule ^sitemap/([^\/]+)/([a-z\-_]+)\.htm(l?)$ index.php?action=sitemap&letter=$1&lang=$2 [L,QSA]
128128
# phpMyFAQ Google sitemap
129129
RewriteRule ^sitemap.xml$ sitemap.xml.php [L,QSA]
130130
RewriteRule ^sitemap.gz$ sitemap.xml.php?gz=1 [L,QSA]

0 commit comments

Comments
 (0)