1. 程式人生 > >wordpress建站:文章404 not found

wordpress建站:文章404 not found

    部落格是以lnmp+wordpress4.8搭建的,在完工後發表了一些部落格,嘗試改掉原本的?p= 模式,修改了固定連結設定,儲存更改後,命令列lnmp restart.

    再次開啟文章卻顯示404 not found,只好求助於baidu google,可是由於我的開啟方式不對以“word press 文章404”搜尋,嘗試新增修改.htaccess檔案,卻發現無作用,就這樣來回的查找了半天,在一個部落格了偶然發現有apache伺服器設定,猛然發現自己是屬於lnmp niginx伺服器的,哎呀,坑爹啊,換個搜尋姿勢,找到了解決方法。

    首先找到自己lnmp安裝的環境wordpress.confg,檔案一般在/usr/local/nginx/config/wordpress.config

 檢視有沒以下內容,沒有的話徐濤新增。

其次,我們需要找到網站的配置檔案,/usr/local/nignx/config/vhost/(你網站名.config),在root index.html~~~ 下一行新增include wordpress.conf;

最後,重啟 lnmp restart 重新開啟就行了。

附上文章地址:http://www.dabu.info/nginx-after-modifying-the-wordpress-permalink-causes-access-article-404.html

相關推薦

wordpress文章404 not found

    部落格是以lnmp+wordpress4.8搭建的,在完工後發表了一些部落格,嘗試改掉原本的?p= 模式,修改了固定連結設定,儲存更改後,命令列lnmp restart.     再次開啟

tomcat 錯誤Access Error: 404 -- Not Found Cannot locate document: /

原因是8080埠被佔用(可能是其他軟體,比如NI公司軟體,電子專業童鞋一般都裝有這類軟體) 解決方法1: When I had an error Access Error: 404 -- Not Found I fixed it by doing the following: Open

tomcat 錯誤Access Error: 404 -- Not Found Cannot locate document: /

原因是8080埠被佔用(可能是其他軟體,比如NI公司軟體,電子專業童鞋一般都裝有這類軟體) 解決方法1: When I had an error Access Error: 404 -- Not Found I fixed it by doing the followin

MantisMantis rest api url 404 Not Found.解決過程紀錄

測試Mantis rest api時碰到的問題:404 Not Found. 根據檔案,Mantis rest api的預設url是{{url}}/api/rest/{{controller}}。 其中{{url}}的部分是Mantis實體的base url,{{controller}}則是各api的

yum 源問題repodata/repomd.xml 404 Not Found

如果在配置是出現 http://dl.fedoraproject.org/pub/epel/6//repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 40

Ubuntu上安裝Mysql時提示Err http://mirrors.aliyun.com/ubuntu 404 Not Found

版權宣告:本文為博主原創文章,未經博主允許不得轉載。 https://blog.csdn.net/Hu_wen/article/details/53611440 Mysql安裝時提示:Err http://mirrors.aliyun.com/ubuntu 404 Not Found

Java web專案報錯HTTP Status 404Not Found Type Status Report Message /WebProject/ Description The ori

在用intelijIDEA的時候,因為是第一次接觸這個,對專案的釋出很是迷糊。怎麼弄老是404錯誤: HTTP Status 404 – Not Found Type Status Report Message/**** Description The origin

Mysql安裝時提示Err http://mirrors.aliyun.com/ubuntu 404 Not Found

Mysql安裝時提示:Err http://mirrors.aliyun.com/ubuntu   404  Not Found Err http://mirrors.aliyun.com/ubuntu/ trusty-updates/main mysql-commo

2018年9月11號最新CocoaPods安裝教程(cocoapods更改ruby源報錯bad response Not Found 404 (https://gems.ruby-china.or)

1.詳細教程不做解釋,請參考網路大部分文章 2.針對cocoapods更改ruby源報錯:(bad response Not Found 404 (https://gems.ruby-china.or

<Linux> SSH配置之後 SHH slave1 測試 errorSSH: command not found

document command span 4.4 pre error -s 6.0 and 首先要查看一下ssh命令存在何處# which ssh /usr/bin/ssh 使用ssh的絕對路徑 # /usr/bin/ssh slave1Welcome to Ub

WordPress選HostEase香港空間的理由

WordPress是全球使用最廣泛的CMS系統,擁有豐富的主題和插件,功能強大、擴展性強,可用於搭建獨立博客、企業站、外貿站等多類型站點,深受國內用戶青睞。 WordPress開源程序基於PHP+MySQL開發環境,所以在租用網站空間時要選擇支持該環境的PHP主機。那哪家PHP主機好呢?知名

404 not found ------ nginx ----- lnmp/lnmpa centOS7

fas 這一 需求 方案 code reporting 疑問 all 配置信息 http://www.codes51.com/itwd/4394286.html (nginx)Centos7 Lnmp 安裝好後 能訪問phpinfo沒問題,但是訪問項目卻404,嘗試了很多方

vue-cli 安裝失敗Failed to download repo vuejs-templates/webapck-simple: Response code 404 (Not Found)

temp post div found imp failed init 輸入 -s 新學習vue的萌新們經常會遇到各種各樣的坑。例如上面這個報錯。這個一般是命令行面板寫錯單詞導致。 正確:vue init webpack-simple .(註意“.”點,指當前目錄) 正確2

weblogic 部署後出現Error 404Not Found

weblogic error 404--Error 404--Not Found 錯誤From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:10.4.5 404 Not FoundThe server has not found anything matc

阿裏雲、寶塔、wordpress

inf 登陸名 class AI res rdp 更新 技術 width 1 阿裏雲   購買一個學生機就行啦 2 寶塔   2.1 更改阿裏雲的鏡像     技巧01:先關掉阿裏雲之前的鏡像     技巧02:到鏡像市場中尋找寶塔的鏡像資源            

Failed to load resource: the server responded with a status of 404 (Not Found)

PE nbsp ava col AI div short rtc not Failed to load resource: the server responded with a status of 404 (Not Found) 報錯情況:圖標加載失敗 原因分析:路徑錯誤

vue-cli 安裝失敗Failed to download repo vuejs-templates/vuedemo: Response code 404 (Not Found)

如果 pac TE template 現場 not 命令 name load 還原問題現場: 第一次使用vue init webpack projectName的時候,由於操作失誤,執行了兩次npm install -g vue-cli,然後再使用vue init webp

搭建好lnmp後,使用瀏覽器訪問,出現404 Not Found

highlight 存在 dex htm service 修改 start not found ice 出現404 Not Found的原因是nginx指向頁面不存在,編輯nginx配置文件,修改nginx指向頁面路徑 root html; 修改為 root /usr/sh

WordPress主機推薦

黑色星期 ins 上傳 tails detail 新人 穩定 oom net 大部分站長目前在建站的過程當中都會選擇wordpress來建站,原因很多,主要是因為wordpress實在是太方便好用了,相對於其他的建站程序wordpress不管是從安裝還是日常的維護上面都優勢

Junit單元測試遇到的initializationerrormethod initializationerror not found

測試 ner erro err 分享圖片 除了 junit rar 必須 原因可能如下: 1.有返回值的方法不能直接測試 2.帶參數的方法不能直接測試 3.訪問權限在public一下的方法不能直接測試 4.static靜態方法不能直接測試 5.不能給出現前四個條件中任意一