Skip to content

Commit dc7c5c3

Browse files
committed
Updated .htacces for new type of public links and 404.
1 parent b4eddc3 commit dc7c5c3

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

core/src/data/public/.htaccess

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
ErrorDocument 404 https://www.grandesficheros.com/data/public/404.html
22
<Files ".ajxp_*">
33
deny from all
4-
</Files>
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+

core/src/data/public/404.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
45
<link rel='stylesheet' type='text/css' href='allz.css'/>
56
</head>
67
<body style="font-family: Helvetica, Verdana, Arial;">
78
<div style="width:560px;height:400px;margin: 8% auto;text-align: center;">
8-
<h1></h1>
9+
<h1>GrandesFicheros.com Descarga Pública</h1>
910
<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);">
1011
<img src="button_cancel.png" style="position: absolute;left: 41px;border: 0px; top:36px;">
1112
</a>
12-
<h2 style="font-weight: normal;font-size: 1.4em;width: 400px;margin: 28px auto;"></h2>
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>
1314
</div>
1415
</body>
1516
</html>

0 commit comments

Comments
 (0)