mentik_yusmantara
Verified User
Please, help
I just created the subdomain, now i have a problem to create unique rule for new subdomain.
Before, i add this rule in custom 4
The problem is, this rule also applied for my new subdomain, my new sub domain not using WordPress and should using unique rule..
I decide to create the rule like this
How i can do that? Using Custom Build
Thanks in Advance
I just created the subdomain, now i have a problem to create unique rule for new subdomain.
Before, i add this rule in custom 4
Code:
# WordPress single site rules
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
# This is cool because no php is touched for static content.
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
# WordPress single site rules
The problem is, this rule also applied for my new subdomain, my new sub domain not using WordPress and should using unique rule..
I decide to create the rule like this
Code:
#This is main site
server
{
# WordPress site rules
# WordPress site rules
}
#This is subdomain site
server
{
# My Unique Rule
# My Unique Rule
}
How i can do that? Using Custom Build
Thanks in Advance
Last edited: