File phpMyFAQ-htaccess.patch of Package phpMyFAQ
Index: phpMyFAQ/phpmyfaq/.htaccess
===================================================================
--- phpMyFAQ.orig/phpmyfaq/.htaccess
+++ phpMyFAQ/phpmyfaq/.htaccess
@@ -12,6 +12,24 @@
# @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link https://www.phpmyfaq.de
# @since 2004-11-13
+
+
+Alias /phpMyFAQ "/usr/share/php/phpmyfaq"
+Alias /phpMyFaq "/usr/share/php/phpmyfaq"
+
+<Directory "/usr/share/php/phpmyfaq">
+
+<IfModule mod_authz_core.c>
+ # Apache 2.4
+ Require all granted
+</IfModule>
+<IfModule !mod_authz_core.c>
+ # Apache 2.2
+ Order allow,deny
+ Allow from all
+</IfModule>
+
+
DirectoryIndex index.php
# always follow the symlinks
<IfModule mod_negotiation.c>
@@ -101,11 +119,11 @@ Header set Access-Control-Allow-Headers
# Error pages
ErrorDocument 404 /index.php?action=404
# General pages
- RewriteRule add-faq.html$ index.php?action=add [L,QSA]
- RewriteRule add-question.html$ index.php?action=ask [L,QSA]
- RewriteRule show-categories.html$ index.php?action=show [L,QSA]
- RewriteRule ^(search|open-questions|contact|glossary|overview|login|privacy)\.html$ index.php?action=$1 [L,QSA]
- RewriteRule ^(login) index.php?action=login [L,QSA]
+ RewriteRule add-faq.html$ /index.php?action=add [L,QSA]
+ RewriteRule add-question.html$ /index.php?action=ask [L,QSA]
+ RewriteRule show-categories.html$ /index.php?action=show [L,QSA]
+ RewriteRule ^(search|open-questions|contact|glossary|overview|login|privacy)\.html$ /index.php?action=$1 [L,QSA]
+ RewriteRule ^(login) /index.php?action=login [L,QSA]
# start page
RewriteRule ^index.html$ index.php [PT]
# a solution ID page
@@ -148,3 +166,5 @@ Header set Access-Control-Allow-Headers
# * http://[...]/api/v3.0/<ACTION>
RewriteRule ^api/v3.0/(.*) api/index.php [L,QSA]
</IfModule>
+
+</Directory>