-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.htaccess
More file actions
executable file
·46 lines (40 loc) · 1.01 KB
/
.htaccess
File metadata and controls
executable file
·46 lines (40 loc) · 1.01 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
# Default Charset
AddDefaultCharset utf-8
# Protect wp-config.php
<files wp-config.php>
order allow,deny
deny from all
</files>
#
# Redirect /wp-admin to /wordpress/wp-admin automatically
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin\/?.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule /wordpress/wp-admin [L]
</IfModule>
#
# htaccess template
# Note that the last RewriteRule points to wordpress/index.php
# Sometimes when you save permalink structure from dashboard this can get messed up
#
# <IfModule mod_rewrite.c>
# RewriteEngine On
# RewriteBase /
# RewriteRule ^index\.php$ - [L]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /wordpress/index.php [L]
# </IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress