我的主持人帐户类似于:
~
~/public_html
~/public_html/system/application
要访问我的网站,我需要在地址栏中输入http://example.com/~userid
我在 ~/public_html 目录中安装了 codeigniter,我可以访问http://example.com/~userid。
欢迎页面正确显示,相关的用户指南页面正确显示。
问题是:如果我创建一个新控制器并创建新视图,网页只会显示“错误 404:找不到文档”。如果我使用http://example.com/~userid/welcome/index它有同样的问题。
如果我使用 base_url() 函数,它会显示http://example.com/~userid/
我该怎么做才能解决这个问题?
提前致谢!