2014-10-08 85 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的文件,并将代码粘贴到其中并保存。