forked from wakdev/slash-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
29 lines (22 loc) · 864 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
SetEnv PHP_VER 5
Options +FollowSymlinks
Options -Indexes
RewriteEngine on
ErrorDocument 403 /index.php?mod=sl_error&id=403
ErrorDocument 404 /index.php?mod=sl_error&id=404
SetEnv SESSION_USE_TRANS_SID 0
# Pages Module
RewriteRule page-([0-9]+).* index.php?mod=sl_pages&id=$1 [L]
# Articles Module
RewriteRule article-([0-9]+).* index.php?mod=sl_articles&id=$1 [L]
# FLAG DEBUG
#php_flag display_startup_errors on
#php_flag display_errors on
#php_flag html_errors on
#php_flag ignore_repeated_errors off
#php_flag ignore_repeated_source off
#php_flag magic_quotes_gpc on
#php_value error_reporting 30719
#Rewrite responsive images only to show_image script
RewriteBase /
RewriteRule (medias/(?:images|attachments)/.*\.(?:jpe?g|gif|png|JPE?G|GIF|PNG))(?:/(\d*\w*))?(?:/(\d*\w*))? core/common/class/functions/includes/show_image.php?url=$1&width=$2&height=$3