How to Get Rid of /wordpress/ From your WordPress Site URL
I brought up a website using wordpress, but I had to visit my website in a way I don't like -- www.example.com/wordpress/. Well, frankly, I want the "/wordpress/" to go to hell.
but how? I did a lot of google, and found some pretty well-written article talking about it. Pretty happy, erh~. some of good examples can be found in this blog and wordpress official website.
So I decided to try and follow their steps. but unfortunately, none of them worked for me. And Fucking luckly, I cracked down my website and was never able to bring it back. Having struggled for almost two hours, I had no choice but to un-install the wordpress, which I have devoted days in it. So I did it and re-installed the wordpress, followed exactly the steps those articles offer, still never made it.
Suddenly, I reminder that it is bitnami I was using, perhaps I should have a little check on its wiki. And you know what, I did indeed find a post about my problem, and there is one command:
bnconfig --base_directory installation_dir --appurl /
which solved all my trouble. What a fucking interesting day!
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步