-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
33 lines (24 loc) · 975 Bytes
/
.htaccess
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
#
# Importante: Deben estar declaradas las variables OJSPATH y JOURNAL
# dentro del servidor Apache y debe existir un archivo llamado new404.html
# en la carpeta raíz de OJS
#
Options FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^download/(?).pdf$ download$1 [NC,L]
#INDEX
RewriteRule ^\$\$\$call\$\$\$/page/page/(.+)$ index.php/index/$$$call$$$/page/page/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(${OJSPATH})(.*)$ index.php/index/$1$2 [L]
RewriteRule ^\$\$\$call\$\$\$/(tab|grid)(.+) index.php/index/$$$call$$$/$1$2 [L]
#REVISTAS PUBLICAS
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(${JOURNAL})(.*)$ index.php/$1$2 [L]
#ERROR 404
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !^(${JOURNAL}|${OJSPATH})(.*)$ /new404.html [L]
</IfModule>