首页 \ 问答 \ 从一个View重定向到另一个View并更改整个URL codeigniter(Redirecting from one View to another and changing the whole URL codeigniter)

从一个View重定向到另一个View并更改整个URL codeigniter(Redirecting from one View to another and changing the whole URL codeigniter)

我正在开发codeigniter,我正在创建一个登录页面。 当我验证凭据时,如果凭据正确,我会将用户移动到下一个视图。 我使用以下命令重定向用户,但它将新视图合并到现有视图,并且浏览器中显示的URL也会被追加。 $这 - >负载>视图( '的DataEntry'); 执行此命令前的URL: http//127.0.0.18080 / Ci /执行此命令后的URL: http//127.0.0.18080 / qi / index.php / CCI / DataEntry

如何在不添加网址的情况下将用户从一个视图重定向到另一个视图,以及正确的方法是什么? 我是个初学者。 所以接受我对愚蠢问题的道歉。


I am working on codeigniter and I am making a login page. When i validate the credentials I wan to move the user to next view if the credentials are correct. I am using following command to redirect the user but it is merging the new view to the existing view and the url being shown in the browser is also getting appended. $this->load->view('DataEntry'); URL before executing this command :http://127.0.0.1:8080/ci/ URL after executing this command : http://127.0.0.1:8080/ci/index.php/CI/DataEntry

how can i redirect the user from one view to another without appending the url and what is the right way to do it ? I am an abolute beginner. so accept my apologies for dumb questions.


原文:https://stackoverflow.com/questions/37907598
更新时间:2022-07-07 09:07

最满意答案

您不能拥有一个名称不同于您帐户名称的自定义github.io页面。 如果您希望在域的顶部有GitHub页面,请创建一个名为pritom008.github.io的存储库。


You cannot have a custom github.io page named other than your account's name. If you want to have a GitHub page in the top of your domain, create a repository named pritom008.github.io.

相关问答

更多
  • 您的DNS配置为将www子域重定向到您的GitHub页面站点,但您的GitHub页面CNAME文件指定您的应用程序应在顶点域myappname.com上运行。 这导致另一个重定向到顶点域,正如您在问题中指出的那样,它有自己的A记录指向非GitHub IP地址。 正如我们所讨论的,一种可能的解决方案是更新存储库中的CNAME文件以使用www.myappname.com而不是myappname.com ,然后设置从apex域到www子域的重定向。 这将导致myappname.github.io和myappnam ...
  • 我找到了一个解决方案,但它需要更改用于提供HTTPS的服务。 我在这里总结一下 ,但总之: 我现在使用Cloudflare作为我的DNS,并在设置我的网站后,将AWS Route 53上的名称服务器更改为Cloudflare提供的名称服务器。 正如您所看到的, christopherkade.com现在以HTTPS提供服务。 I have found a solution, but it required a change in the service used to deliver HTTPS. I su ...
  • 你能行的。 请注意,所有DNS CNAME条目都指向同一个主机。 1:github.com/florianwolters/florianwolters.github.com CNAME文件内容: blog.florianwolters.de DNS CNAME:blog> florianwolters.github.com 2:github.com/florianwolters/pear/tree/gh-pages CNAME文件内容: pear.florianwolters.de DNS CNAME:pe ...
  • 所以我想出来了 詹姆斯·麦克劳克林给了我需要的轻推。 要设置一个自定义域,可以处理www.yourdomain.com和yourdomain.com的gh页面Project Pages repo(假设您的repo上已经有一个gh页面分支): 从您的项目回购,gh-pages分支。 创建一个内容为yourdomain.com的CNAME文件。 提交然后推。 在您的DNS管理器中,设置两个cname记录。 一个为根顶(@),一个为www。 两者都指向YOURusername.github.io 。 如果您的DN ...
  • 除了在地点( server部分)指向子域之外,CNAME DNS记录不允许任何其他内容。 ~username部分不是域的一部分,因此无法添加到CNAME记录中。 我很确定你想做的事情是不可能的。 编辑:如果你完全控制域,你可以创建一个子域并指向github,所以你可以使用username.example.com而不是example.com/~username 。 那会有用。 CNAME DNS records don't allow for anything other than pointing sub- ...
  • 不,如果部署了自定义域,您的user.github.io域将始终重定向到定义的自定义域 No, if a custom domain is deployed, your user.github.io domain will always redirect to the defined custom domain
  • 您不能拥有一个名称不同于您帐户名称的自定义github.io页面。 如果您希望在域的顶部有GitHub页面,请创建一个名为pritom008.github.io的存储库。 You cannot have a custom github.io page named other than your account's name. If you want to have a GitHub page in the top of your domain, create a repository named prito ...
  • 在这个问题上,我花了好几个小时把头发拉出来,并且想到在别人遇到它的情况下,我会发布解决方案。 简单的问题是,当react-scripts build运行时,它会忽略根目录中的CNAME文件,并完全覆盖build/目录中的任何内容,从而完全覆盖gh-pages分支,因此将CNAME添加到该问题将解决问题暂时:直到下次你推。 解决方案非常简单: 将CNAME从/移动到/public 。 react-scripts会将它识别为一个静态文件,就像一个favicon一样,并且总是将它复制到gh-pages回购并将其包 ...
  • 您必须清除缓存。 我第一次访问 “minegamer5570.github.io/Filehub/index.html” 没有重定向 You must clear your cache. My first visit to "minegamer5570.github.io/Filehub/index.html" has no redirect
  • 我想我找到了解决方案。 离开它,因为它可能对别人有帮助。 我现在需要等待谷歌重新索引,但它应该这样做。 根据这个问题和这个谷歌文章头部的规范链接标签应该修复它。 我还添加了一个js重定向技巧来重定向来自谷歌的人。 if ( window.self === window.top ) { // console.log("not in a frame") window.loc ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)