在我当地,它有效。这里我使用rocketeer来部署项目。
在服务器中,这里是wp-content/themes
目录
./
../
foobar/
.gitignore
index.php -> /var/www/foobar.example.com/shared/wp-content/themes/index.php
twentyfifteen -> /var/www/foobar.example.com/shared/wp-content/themes/twentyfifteen/
在管理面板中,我只看到了twofifteen,但看不到foobar。
我在这里使用 Nginx
server {
listen 80;
server_name foobar.example.com;
root /var/www/foobar.example.com/current;
error_page 404 /index.php;
location / {
index index.php;
try_files $uri $uri/ =404;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~/\.ht {
deny all;
}
}