Update vhost.conf
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
|
||||
index index.html index.php;
|
||||
|
||||
location / {
|
||||
|
||||
if ($request_uri ~ ^/sites/(.*)$ ) {
|
||||
return 301 /$1;
|
||||
}
|
||||
|
||||
|
||||
if ($request_uri ~ ^/index(\.html)?$) {
|
||||
return 301 /;
|
||||
}
|
||||
|
||||
|
||||
if ($request_uri ~ ^/(.*)\.html$) {
|
||||
return 301 /$1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user