-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtaccess
More file actions
48 lines (43 loc) · 1.92 KB
/
htaccess
File metadata and controls
48 lines (43 loc) · 1.92 KB
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
SetEnv APPLICATION_ENV "development"
RewriteEngine On
# The following rule tells Apache that if the requested filename
# exists, simply serve it.
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]
# Strip any trailing slashes from incoming requests
RewriteCond %{REQUEST_URI} ^(.+)/+$
RewriteRule .* %1 [R=307,L]
Redirect 301 /beeldbank https://cagnet.be/s/start/beeldbank
Redirect 301 /films https://cagnet.be/s/start/films
Redirect 301 /collecties https://cagnet.be/s/start/collecties
Redirect 301 /filmkopies https://cagnet.be/s/start/filmkopies
Redirect 301 /nieuws https://cagnet.be/s/start/nieuws
Redirect 301 /projecten https://cagnet.be/s/start/projecten
Redirect 301 /verhalen https://cagnet.be/s/start/verhalen
Redirect 301 /agenda https://cagnet.be/s/start/agenda
Redirect 301 /objecten https://collectiebulskampveld.be/s/bulskampveld/objecten
Redirect 301 /agenda-bkv https://collectiebulskampveld.be/s/bulskampveld/agenda-bkv
Redirect 301 /nieuws-bkv https://collectiebulskampveld.be/s/bulskampveld/nieuws-bkv
Redirect 301 /item/236034 https://cagnet.be/item/235975
Redirect 301 /item/236052 https://cagnet.be/item/235987
# The following rewrites all other queries to index.php. The
# condition ensures that if you are using Apache aliases to do
# mass virtual hosting, the base path will be prepended to
# allow proper resolution of the index.php file; it will work
# in non-aliased environments as well, providing a safe, one-size
# fits all solution.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}/index.php [L]
# Block access to all .ini files.
<FilesMatch "\.ini$">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order Allow,Deny
Deny from all
</IfModule>
</FilesMatch>