【问题标题】:Codeigniter URL working locally but not on serverCodeigniter URL 在本地工作,但不在服务器上
【发布时间】:2014-08-19 14:20:31
【问题描述】:

我在某个地方遇到了一个愚蠢的错误。在本地我一直在使用:

localhost:8080/project/index.php/Welcome/emailsend/Name/PersonEmail/EmailMessage

其中 Name、PersonEmail 和 EmailMessage 是通过 url 传递的参数。现在本地一切正常。函数 emailsend 会返回一些东西。请注意,我的基本 URL 在我的配置文件中是空的。

我现在已将我的代码上传到服务器,我正在查看此网址是否有效:

mysubdomain.domainname.com/index.php/Welcome/emailsend/Name/PersonEmail/EmailMessage

我现在找不到 404 错误页面。我到底哪里错了?

【问题讨论】:

标签: php codeigniter


【解决方案1】:

您必须转到您的 codeIgniter 配置文件并更改站点和基本 URL。

https://ellislab.com/codeigniter/user-guide/helpers/url_helper.html 或者您可以转到 application/config/config.php 并手动更改它们。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-06-19
    • 1970-01-01
    • 1970-01-01
    • 2016-03-05
    • 2012-11-13
    • 2023-03-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多