我尝试使用Xampp在我的计算机上托管本地WordPress网站。
我让一切正常,我可以进入网站等。但是我无法在不编辑.htaccess的情况下更改永久链接,这就是我的问题。
我已经删除了"#"在'#34;加载重写"前面Xampp中的模块,也更改了" AllowOverride All"。
如果我将自己的.htaccess文件添加到WordPress根目录(Xampp / htdocs / mysite / .htaccess)中,则会出现错误,否则就不会出现错误。我隐藏文件可见,但我无法在那里看到.htaccess文件,即使添加空白文件也会打破它。
网页错误:
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Apache错误日志的错误:
[Fri May 16 13:45:48.885862 2014] [core:alert] [pid 18435] [client ::1:54974] /Applications/XAMPP/xamppfiles/htdocs/PMD-new/.htaccess: Invalid command '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1038\\cocoasubrtf360', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/PMD-new/wp-admin/options-permalink.php?settings-updated=true
.htaccess文件:
当我删除.htaccess文件时,它工作正常,但我无法更改永久链接。
关于这一点我是新的,所以感谢任何帮助。