forked from npatel2012/myfaq-php-isa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_httpd.ini
133 lines (105 loc) · 4.81 KB
/
_httpd.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
##
# phpMyFAQ httpd.ini file for one of the url rewriting options
# when running phpMyFAQ on IIS
# Ref.: ISAPI_Rewrite, http://www.isapirewrite.com/
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at http://mozilla.org/MPL/2.0/.
#
# @author Thorsten Rinne <thorsten@phpmyfaq.de>
# @author Martin Czura <bae@baerlinonline.de>
# @author Matteo Scaramuccia <matteo@scaramuccia.com>
# @copyright 2005-2015 phpMyFAQ Team
# @license http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link http://www.phpmyfaq.de
# @since 2005-01-05
#
[ISAPI_Rewrite]
# Disable loops while processing the rules
RepeatLimit 0
# the path to your phpMyFAQ installation
UriMatchPrefix /phpmyfaq/
UriFormatPrefix /phpmyfaq/
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule httpd(?:\.ini|\.parse\.errors) / [F,I,O]
# Maintenance Section - Uncomment the lines below according to your need
# Write below your client IP address (e.g.: 127.0.0.1)
# if you need to keep your web access during maintenance
#RewriteCond %REMOTE_ADDR !^127.0.0.1$
# Return the user an explanation
#RewriteRule (.*)$ underMaintenance.htm [R]
# index
RewriteRule index.html$ index.php [I,U,O,L]
# show
RewriteRule showcat.html$ index.php?action=show [I,U,O,L]
# search
# GET parameter: e.g., search
RewriteRule search.html\?([^\s]+)$ index.php?$1&action=search [I,U,L]
# No GET parameters at all
RewriteRule search.html$ index.php?action=search [I,U,O,L]
# addcontent
RewriteRule addcontent.html$ index.php?action=add [I,U,O,L]
# ask
RewriteRule ask.html$ index.php?action=ask [I,U,O,L]
# open
RewriteRule open.html$ index.php?action=open [I,U,O,L]
# help
RewriteRule help.html$ index.php?action=help [I,U,O,L]
# contact
RewriteRule contact.html$ index.php?action=contact [I,U,O,L]
# glossary
RewriteRule glossary.html$ index.php?action=glossary [I,U,O,L]
# artikel
# GET parameter: e.g., highlight
RewriteRule ([0-9]+)_([0-9]+)_([a-z\-]+).html\?([^\s]+)$ index.php?$4&action=artikel&cat=$1&id=$2&artlang=$3 [I,U,L]
# No GET parameters at all
RewriteRule ([0-9]+)_([0-9]+)_([a-z\-]+).html$ index.php?action=artikel&cat=$1&id=$2&artlang=$3 [I,U,O,L]
# category
RewriteRule category([0-9]+).html$ index.php\?action=show&cat=$1 [I,U,O,L]
# categoryn_n
RewriteRule category([0-9]+)_([0-9]+).html$ index.php?action=show&cat=$1&seite=$2 [I,U,O,L]
# sitemap
RewriteRule sitemap-([a-z]+)_([a-z\-]+)\.html$ index.php?action=sitemap&letter=$1&lang=$2 [I,U,O,L]
# solution id
RewriteRule solution_id_([0-9]+).html$ index.php?solution_id=$1 [I,U,O,L]
# PMF faq record page
# * http://[...]/content/1/1/<LANGUAGE CODE>/<FAQ TOPIC>.htm
# * http://[...]/content/1/1/<LANGUAGE CODE>/<FAQ TOPIC>.html
# GET parameter: e.g., highlight
RewriteRule content/([0-9]+)/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)\?([^\s]+)$ index.php?$6&action=artikel&cat=$1&id=$2&artlang=$3 [I,U,L]
# No GET parameters at all
RewriteRule content/([0-9]+)/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)$ index.php?action=artikel&cat=$1&id=$2&artlang=$3 [I,U,O,L]
# PMF category page with page count
# * http://[...]/category/1/<PAGE NUMBER/<CATEGORY NAME>.htm
# * http://[...]/category/1/<PAGE NUMBER/<CATEGORY NAME>.html
RewriteRule category/([0-9]+)/([0-9]+)/(.+)\.htm(l?)$ index.php?action=show&cat=$1&seite=$2 [I,U,O,L]
# PMF category page
# * http://[...]/category/1/<CATEGORY NAME>.htm
# * http://[...]/category/1/<CATEGORY NAME>.html
RewriteRule category/([0-9]+)/(.+)\.htm(l?)$ index.php?action=show&cat=$1 [I,U,O,L]
# PMF news page
# * http://[...]/news/<ID>/<LANGUAGE CODE>/<HEADER>.htm
# * http://[...]/news/<ID>/<LANGUAGE CODE>/<HEADER>.html
RewriteRule news/([0-9]+)/([a-z\-]+)/(.+)\.htm(l?)$ index.php?action=news&newsid=$1&newslang=$2 [I,U,O,L]
# PMF sitemap
# * http://[...]/sitemap/<LETTER>/<LANGUAGE CODE>.htm
# * http://[...]/sitemap/<LETTER>/<LANGUAGE CODE>.html
RewriteRule sitemap/([^\/]+)/([a-z\-]+)\.htm(l?)$ index.php?action=sitemap&letter=$1&lang=$2 [I,U,O,L]
# PMF Google sitemap
# * http://[...]/sitemap.xml
# * http://[...]/sitemap.gz
# * http://[...]/sitemap.xml.gz
RewriteRule sitemap.xml$ sitemap.xml.php [L]
RewriteRule sitemap.gz$ sitemap.xml.php?gz=1 [L]
RewriteRule sitemap.xml.gz$ sitemap.xml.php?gz=1 [L]
# PMF Yahoo sitemap
# * http://[...]/urllist.txt
# * http://[...]/urllist.txt.gz
RewriteRule urllist.txt$ sitemap.yahoo.php [L]
RewriteRule urllist.txt.gz$ sitemap.yahoo.php?gz=1 [L]
# PMF tags page
# * http://[...]/tags/<ID>/<HEADER>.htm
RewriteRule tags/([0-9]+)/([^\/]+)\.htm(l?)$ index.php?action=search&tagging_id=$1 [I,U,O,L]
# instant response
RewriteRule instantresponse.html$ index.php?action=instantresponse [I,U,O,L]