-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·67 lines (55 loc) · 2.41 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's. If they work,
# it has been set by your server administrator and you do not need it set here.
##
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
## Mod_rewrite in use.
AddDefaultCharset UTF-8
RewriteEngine On
## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
## End - Rewrite rules to block out some common exploits.
## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects
##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##
RewriteBase /
#RewriteCond %{REQUEST_URI} ^/content(s)*(.*)(/css/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/content(s)*(.*)(/fonts/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/content(s)*(.*)(/images/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/content(s)*(.*)(/js/)(.*)$
#RewriteRule ^(.*)$ frontend/%3%4 [L]
#RewriteCond %{REQUEST_URI} ^/(css/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/(fonts/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/(images/)(.*)$ [OR]
#RewriteCond %{REQUEST_URI} ^/(js/)(.*)$
#RewriteRule ^(.*)$ frontend/%1%2 [L]
RewriteCond %{REQUEST_URI} ^(/)*$
RewriteRule ^(.*)$ contents/vol1 [R]
RewriteCond %{REQUEST_URI} ^/contents/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/content/(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^/tasks/(.*)$
RewriteRule ^.*$ /frontend/index.html