最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WordPress not linking correctly with .htaccess redirect to subdirectory

programmeradmin2浏览0评论

I have read other posts about redirect to subdirectory issues, but they don't answer this precise question. I would like to redirect the main domain name in a hosting account into a subdirectory. The subdirectory contains a clone of the original site.

I have a client that is on a web host that I don't have much experience with. The redirect page says, "Wild Card Redirect box will redirect all files within a directory to the same filename in the redirected directory. You cannot use a Wild Card Redirect to redirect your main domain to a different directory on your site."

So, I added code right into .htaccess to redirect the domain name into the subdirectory. The home page works fine, but all the links go back out to the original files. (I added a test comment in header.php so I can tell which version I'm in.)

Would the fix be to change the address in WordPress too? It seems to me that if the domain is aimed at the subdirectory, no further action should be needed inside WordPress.

发布评论

评论列表(0)

  1. 暂无评论