How to add a static page before a cms

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.