Home > Backend Development > PHP Tutorial > wordpress theme download wordpress path and pseudo-static configuration under nginx

wordpress theme download wordpress path and pseudo-static configuration under nginx

WBOY
Release: 2016-07-29 08:43:38
Original
1317 people have browsed it

Problem: Open the WordPress backend, the homepage can be opened, but other function pages show the wrong path, and then compared the path, the wp-admin part is missing in the path. At the same time, the pseudo-static Day and name of the article are set to display the article link. Suddenly I found that the article link cannot be opened. On, 404 errors are displayed. These should be server nginx site configuration issues
The following is the configuration file of my wordpress site under nginx:

<code><span>server</span> {
        listen       <span>80</span>;
        server_name  域名;
        <span>index</span><span>index</span>.html <span>index</span>.htm <span>index</span>.php;
        root 站点所在的目录;

        location / {
        try_files $uri $uri/ /<span>index</span>.php?$args;
        }
        location ~ .*\.(php|php5)?$
        {
                <span>#fastcgi_pass  unix:/tmp/php-cgi.sock;</span>
                fastcgi_pass  <span>127.0</span><span>.0</span><span>.1</span>:<span>9000</span>;
                fastcgi_index <span>index</span>.php;
                include fastcgi.conf;
        }
        location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
        {
                expires <span>30</span>d;
        }
        location ~ .*\.(js|css)?$
        {
                expires <span>1</span>h;
        }


        <span>#伪静态设置路径 和日志文件路径</span>
        include /etc/nginx/rewrite/<span>default</span>.conf;
        access_log  /var/log/nginx/wordpress.log;
}</code>
Copy after login

This is how it is configured
Restart nginx: service nginx restart
The blog post link is normal and the background function link is normal.

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the WordPress theme download, WordPress path and pseudo-static configuration under nginx, including the content of WordPress theme download. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template