简体   繁体   English

VPS上的WordPress的.htaccess和文件权限

[英].htaccess and file permissions of WordPress on VPS

I have a WordPress installation on my VPS. 我在VPS上安装了WordPress。 Why is it when I try to change the permalink settings from ?p=123 to /2014/04/sample-post/ I will get 404 Not Found error? 当我尝试将永久链接设置从?p=123更改为/2014/04/sample-post/为什么会出现404 Not Found错误? What are the needed file permissions for WordPress? WordPress需要哪些文件权限?

Also, I already enable https://www for my site. 另外,我已经为我的网站启用了https://www How can i redirect all visitors who access the http:// , http://www and https:// to https://www ? 如何将所有访问http://http://wwwhttps://访问者重定向到https://www

To enforce https: Sign in into your admin panel, Settings -> General. 强制执行https:登录到管理面板中的“设置”->“常规”。 In WordPress Address (URL) replace http with https and same with Site Address (URL) and WordPress will magically enforce https , same way you can enforce www by typing it in front of your domain name. WordPress Address (URL)http替换为https ,将http替换为Site Address (URL)然后WordPress将神奇地强制执行https ,这与通过在域名前键入www来强制实施www的方式相同。

With permalinks, are you sure that your server supoorts htaccess? 使用永久链接,您确定服务器支持htaccess吗? If you got nginx server, you might want to have a look here. 如果您有nginx服务器,则可能要在这里看看。 http://codex.wordpress.org/Nginx http://codex.wordpress.org/Nginx

File permissions should be 755. 文件权限应为755。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM