-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
52 lines (40 loc) · 2.16 KB
/
README
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
Redirecturls redirecturls MODX Revolution 2.x plugin
Copyright 2012 Jiri Pavlicek <[email protected]>
@author Jiri Pavlicek <[email protected]>
@version Version 1.0.0
03/20/12
Redirecturls is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any
later version.
Redirecturls is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
Redirecturls; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
Description:
Plugin Redirecturls rewrite more urls to one document. In the system config key
"redirecturls_ids" specify one or more document IDs (separated by comma).
If you have more plugins on event OnPageNotFound, this plugin must be run first
(lowest priority value).
Install:
1) create plugin "redirecturls" on event OnPageNotFound
2) create system config key "redirecturls_ids"
Example:
1) in the system config key "redirecturls_ids" specify one or more document IDs (for example 5,6)
2) you can call URL like this:
http://yoursite/actions/ (URL of document ID 5)
http://yoursite/actions/something1 (this will be rewritten to document ID 5)
http://yoursite/actions/something2 (this will be rewritten to document ID 5)
http://yoursite/actions/something3 (this will be rewritten to document ID 5)
http://yoursite/products/ (URL of document ID 6)
http://yoursite/products/everythingelse1 (this will be rewritten to document ID 6)
http://yoursite/products/everythingelse2 (this will be rewritten to document ID 6)
http://yoursite/products/everythingelse3 (this will be rewritten to document ID 6)
Tested od MODX revolution 2.2.1-dev
Events: OnPageNotFound
TODO:
- test with other MODX Revo versions
- test on site placed into directory (tested only on web placed in a root directory)
- make package for Revo package manager