Skip to content

Commit 60c0228

Browse files
committed
fix: corrected some weird .htaccess configuration items
1 parent 6f47a3f commit 60c0228

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

phpmyfaq/.htaccess

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
101101
# Exclude assets from being handled by Symfony Router
102102
RewriteRule ^(admin/assets)($|/) - [L]
103103
# Error pages
104-
ErrorDocument 404 /index.php?action=404
104+
ErrorDocument 404 index.php?action=404
105105
# General pages
106106
RewriteRule ^add-faq.html$ index.php?action=add [L,QSA]
107107
RewriteRule ^add-question.html$ index.php?action=ask [L,QSA]
@@ -110,7 +110,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
110110
RewriteRule ^(search|open-questions|contact|glossary|overview|login|privacy)\.html$ index.php?action=$1 [L,QSA]
111111
RewriteRule ^(login) index.php?action=login [L,QSA]
112112
# start page
113-
RewriteRule ^index.html$ index.php [PT]
113+
RewriteRule ^index.html$ index.php [L,QSA]
114114
# a solution ID page
115115
RewriteCond %{REQUEST_URI} solution_id_([0-9]+)\.html$ [NC]
116116
RewriteRule ^solution_id_(.*)\.html$ index.php?solution_id=$1 [L,QSA]
@@ -125,7 +125,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
125125
# phpMyFAQ news page
126126
RewriteRule ^news/([0-9]+)/([a-z\-_]+)/(.+)\.htm(l?)$ index.php?action=news&newsid=$1&newslang=$2 [L,QSA]
127127
# phpMyFAQ sitemap
128-
RewriteRule ^sitemap/([^\/]+)/([a-z\-_]+)\.htm(l?)$ index.php?action=sitemap&letter=$1&lang=$2 [L,QSA]
128+
RewriteRule ^sitemap/([^/]+)/([a-z\-_]+)\.htm(l?)$ index.php?action=sitemap&letter=$1&lang=$2 [L,QSA]
129129
# phpMyFAQ Google sitemap
130130
RewriteRule ^sitemap.xml$ sitemap.xml.php [L,QSA]
131131
RewriteRule ^sitemap.gz$ sitemap.xml.php?gz=1 [L,QSA]
@@ -137,7 +137,7 @@ Header set Access-Control-Allow-Headers "Content-Type, Authorization"
137137
# phpMyFAQ tags page with page count
138138
RewriteRule ^tags/([0-9]+)/([0-9]+)/(.+)\.htm(l?)$ index.php?action=search&tagging_id=$1&seite=$2 [L,QSA]
139139
# phpMyFAQ tags page
140-
RewriteRule ^tags/([0-9]+)/([^\/]+)\.htm(l?)$ index.php?action=search&tagging_id=$1 [L,QSA]
140+
RewriteRule ^tags/([0-9]+)/([^/]+)\.htm(l?)$ index.php?action=search&tagging_id=$1 [L,QSA]
141141
# Authentication services
142142
RewriteRule ^services/webauthn(.*) services/webauthn/index.php [L,QSA]
143143
# User pages

0 commit comments

Comments
 (0)