我有一个域http://www.mydomain.com
。我的根文件夹结构是这样的。
根
-WordPress
我想将所有请求重定向到 wordpress 文件夹。我用谷歌搜索并写了这样的文件
RewriteEngine on
rewritecond %{http_host} http://mydomain.com/ [nc]
rewriterule (.*)$ http://mydomain.com/wordpress [r=301,nc]
我现在收到 404 File not found 错误。我什至尝试使用另一种技术来创建索引文件并使用header('location:/wordpress1)
,这很好用,但是每当我在 Wordpress 中上传主题时,它都会给我 500 Internal srver Error .. 任何可以帮助我的人
注意:我正在标记 php因为他们可能会使用这个文件