Server: ubuntu14.04nginxphp5 domain name: a.com deploy a wordpress-like cms system. However, we need to add a static page before wordpress. this static page is first displayed when accessing the website, then you can click the window on the static page to enter wordpress .... Server:
Ubuntu 14.04 nginx php5
One domain name:A.com
Deploy a cms system similar to wordpress, but we need to add a static page before wordpress. when accessing the website, we first display the static page, and then click the window on the static page to enter wordpress.
How can this problem be achieved?
Reply content:
Server:Ubuntu 14.04 nginx php5
One domain name:A.com
Deploy a cms system similar to wordpress, but we need to add a static page before wordpress. when accessing the website, we first display the static page, and then click the window on the static page to enter wordpress.
How can this problem be achieved?
If the static page of the domain name a.com is index.html, you can set it as follows:
Server {listen 80; server_name a.com; root/var/www/a.com; location/{index index.html index. php; try_files $ uri // index. php & is_args & args;} location ~ \. Php {# php fastcgi related configuration }}
As shown in the preceding configuration, when a static page exists, the static page is displayed. if the page does not exist, the index is used. php (that is, wordpress) for processing, index index.html index. php; this line can be synchronized to index.html (if this file exists) when a.com/is opened, so that the configuration fully meets your needs.
Assume that your domain name isa.comThe homepage isa.com/index.htmlPut wordpress ina.com/wordpress/Lower
Then Configure nginx as follows:
Server {listen 80; server_name a.com; location/{index index.html; root Your static page path;} location/wordpress {index. php index.html; root Your wordpress path; # put wordpress and PHP configuration here }}
Deploy wordpress in a column under a.com
I am not very familiar with this requirement. what special business requirements do not allow this static page to be placed in wordpress?
Except for the upstairs method
Of course, subdomain names can also be used:
Put your static page in static.a.com
Wordpress is placed at www.a.com.
This should be more conducive to SEO
Add one. you can set a static homepage for a WP background custom topic.
Sorry, the error is not WP.