Skip to content

Commit f5ea037

Browse files
committed
Added 404 for public links.
1 parent ab34230 commit f5ea037

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

core/src/data/public/.htaccess

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
ErrorDocument 404 https://www.grandesficheros.com/data/public/404.html
22
<Files ".ajxp_*">
33
deny from all
4-
</Files>
5-
<IfModule mod_rewrite.c>
6-
RewriteEngine on
7-
RewriteBase /data/public
8-
RewriteCond %{REQUEST_FILENAME} !-f
9-
RewriteCond %{REQUEST_FILENAME} !-d
10-
RewriteRule ^([a-z0-9]+)-([a-z]+)$ $1.php?lang=$2 [L]
11-
RewriteRule ^([a-z0-9]+)$ $1.php [L]
12-
</IfModule>
13-
4+
</Files>
5+
<IfModule mod_rewrite.c>
6+
RewriteEngine on
7+
RewriteBase /data/public
8+
RewriteCond %{REQUEST_FILENAME} !-f
9+
RewriteCond %{REQUEST_FILENAME} !-d
10+
RewriteRule ^([a-z0-9]+)-([a-z]+)$ $1.php?lang=$2 [L]
11+
RewriteRule ^([a-z0-9]+)$ $1.php [L]
12+
</IfModule>

core/src/data/public/404.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<!DOCTYPE html>
2-
<html>
3-
<head>
4-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5-
<link rel='stylesheet' type='text/css' href='allz.css'/>
6-
</head>
7-
<body style="font-family: Helvetica, Verdana, Arial;">
8-
<div style="width:560px;height:400px;margin: 8% auto;text-align: center;">
9-
<h1>GrandesFicheros.com Descarga Pública</h1>
10-
<a href="#" style="cursor:default;position: relative;display: block;height: 200px;width: 203px;margin: 0 auto;-webkit-border-radius: 19px;-moz-border-radius: 19px;border-radius: 19px;background-color: #eee;box-shadow: 1px 1px 10px rgba(0,0,0,0.4);">
11-
<img src="button_cancel.png" style="position: absolute;left: 41px;border: 0px; top:36px;">
12-
</a>
13-
<h2 style="font-weight: normal;font-size: 1.4em;width: 400px;margin: 28px auto;">Ooops, el fichero requerido no fue encontrado. Tal vez fue eliminado o ya no está compartido.</h2>
14-
</div>
15-
</body>
16-
</html>
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<link rel='stylesheet' type='text/css' href='allz.css'/>
6+
</head>
7+
<body style="font-family: Helvetica, Verdana, Arial;">
8+
<div style="width:560px;height:400px;margin: 8% auto;text-align: center;">
9+
<h1>GrandesFicheros.com Descarga Pública</h1>
10+
<a href="#" style="cursor:default;position: relative;display: block;height: 200px;width: 203px;margin: 0 auto;-webkit-border-radius: 19px;-moz-border-radius: 19px;border-radius: 19px;background-color: #eee;box-shadow: 1px 1px 10px rgba(0,0,0,0.4);">
11+
<img src="button_cancel.png" style="position: absolute;left: 41px;border: 0px; top:36px;">
12+
</a>
13+
<h2 style="font-weight: normal;font-size: 1.4em;width: 400px;margin: 28px auto;">Ooops, el fichero requerido no fue encontrado. Tal vez fue eliminado o ya no está compartido.</h2>
14+
</div>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)