2014-10-08 65 views
0

我使用wordpress,我想將我的永久鏈接從「默認」更改爲「發佈名稱」。我改變它後,我得到了來自Apache的404錯誤。然後我搜索,得到這個:Wordpress permalink structure change issue當我寫這篇文章commant「命令a2enmod用戶目錄」,並刷新我的網頁,我得到500錯誤:內部服務器錯誤apache

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

這裏是我的服務器日誌錯誤:

127.0.0.1:45292] /var/www/tvvarzesh.dev/public_html/.htaccess: Invalid command 'BEGIN', perhaps misspelled or defined by a module not included in the server configuration

什麼我應該怎麼做?感謝名單

+0

我們可以看到您的**。htaccess **文件的內容,位於您的網站根目錄嗎? – rnevius 2014-10-08 08:19:56

回答

1

請遵循以下步驟:

  1. 轉到Dashboard>Settings>Permalinks
  2. 選擇合適的固定鏈接結構,然後點擊保存。
  3. WordPress會生成一個新的.htaccess文件代碼,複製代碼。
  4. 在WordPress根目錄下創建一個名爲.htaccess的文件,並將代碼粘貼到其中並保存。