-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
25 lines (19 loc) · 826 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
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
# END WordPress
RewriteEngine On
# Allow direct access to files within the uploads directory
RewriteCond %{REQUEST_URI} ^/uploads/ [NC]
RewriteRule ^ - [L]
# Allow direct access to files within the plugins directory
RewriteCond %{REQUEST_URI} ^/plugins/ [NC]
RewriteRule ^ - [L]
# Redirect the root URL to the WordPress directory
RewriteRule ^(.*)$ /wordpress/$1 [L]
# Handle requests to files and directories that don't exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/wordpress/
RewriteRule ^(.*)$ /wordpress/$1 [L]