-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess.dist
43 lines (38 loc) · 1.32 KB
/
.htaccess.dist
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
# This file is part of the WordPress Standard project.
#
# Copyright (c) 2015-present LIN3S <info@lin3s.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Gorka Laucirica <gorka.lauzirika@gmail.com>
# @author Beñat Espiña <benatespina@gmail.com>
# @author Jon Torrado <jontorrado@gmail.com>
# BEGIN LIN3S - Basic WordPress (non Multisite)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Securize some files
RewriteRule ^.git - [F,L]
RewriteRule ^.lin3s_cs.yml.dist - [F,L]
RewriteRule ^Capfile - [F,L]
RewriteRule ^composer\.(lock|json)$ - [F,L]
RewriteRule ^config - [F,L]
RewriteRule ^etc/.*$ - [F,L]
RewriteRule ^Gemfile - [F,L]
RewriteRule ^router.php - [F,L]
RewriteRule ^vendor/.*$ - [F,L]
RewriteRule ^wp-config-custom-sample.php - [F,L]
# Make the admin still accessible from /wp-admin
RewriteCond %{REQUEST_URI} ^/wp-admin/?(.*)
RewriteRule ^wp-admin/(.*) core/wp-admin/$1 [R=301,L]
# Default WordPress rules
RewriteRule ^core/index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . core/index.php [L]
RewriteRule ^$ core/index.php [L]
</IfModule>
# END LIN3S
# BEGIN WordPress
# END WordPress