简体   繁体   English

Codeigniter URL重定向到在线服务器。 我无法找到问题所在

[英]Codeigniter url redirects to online server. Iam unable to find where is issue

I have to modify a project . 我必须修改一个项目。 I get the code . 我得到了代码。 This application is developed in codeigniter.when i copy this project to localhost and hit the url : localhost/project This url redirect my website from local to www.laundruae.con I have made the following modifications in config, route and htaccess but issue remains same. 当我将此项目复制到localhost并单击url时,此应用程序是在codeigniter中开发的:localhost / project该URL将我的网站从本地重定向到www.laundruae.con。我在config,route和htaccess中进行了以下修改,但问题仍然存在相同。
-i set base_url ='' in config.php -i在config.php中设置base_url =''
-i set default_controller = '' in route.php -i在route.php中设置default_controller =''

  1. Set base_url with your website link 使用您的网站链接设置base_url
    $config['base_url'] = 'http://www.laundruae.con/';
  2. Add url in config/autoload.php config/autoload.php添加url
    $autoload['helper'] = array('url');
  3. Set your default controller in route.php route.php设置默认控制器

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在此服务器上找不到请求的URL。 在PHP codeigniter上 - The requested URL was not found on this server. on php codeigniter 我无法使用本地服务器在codeigniter中发送电子邮件。 帮助解决此问题 - I am unable to send email in codeigniter using Local Server. Help to resolve this issue 无法在 apache2 httpd 服务器上配置 php。 找不到 php 模块 where.so 文件所在的位置 - Unable to configure php on apache2 httpd server. Unable to find php modules where .so file is located 使用PHP查找URL重定向到的位置 - Find where URL redirects to using PHP 重定向到codeigniter中的URL损坏 - Redirects to broken url in codeigniter “在此服务器上找不到请求的URL / projectname / pagename /。”WordPress网站上的问题 - “The requested URL /projectname/pagename/ was not found on this server.” issue on WordPress website CodeIgniter 4 找不到路由 url “在此服务器上找不到请求的 URL。” 部署在 Heroku - CodeIgniter 4 Route url not found "The requested URL was not found on this server." deployment on Heroku 找不到CodeIgniter / ion_auth 404“在此服务器上找不到请求的URL / ci / admin / user / login /。” - CodeIgniter/ion_auth 404 Not Found “The requested URL /ci/admin/user/login/ was not found on this server.” 在此服务器上未找到请求的 URL /clients/login。 Codeigniter 应用程序中出现错误 - The requested URL /clients/login was not found on this server. Error comes in Codeigniter application CodeIgniter重定向,以[:: 1]替换本地URL - CodeIgniter redirects replacing localhost URL with [::1]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM