从一个View重定向到另一个View并更改整个URL codeigniter(Redirecting from one View to another and changing the whole URL codeigniter)
我正在开发codeigniter,我正在创建一个登录页面。 当我验证凭据时,如果凭据正确,我会将用户移动到下一个视图。 我使用以下命令重定向用户,但它将新视图合并到现有视图,并且浏览器中显示的URL也会被追加。 $这 - >负载>视图( '的DataEntry'); 执行此命令前的URL: http : //127.0.0.1 : 8080 / Ci /执行此命令后的URL: http : //127.0.0.1 : 8080 / 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
最满意答案
您不能拥有一个名称不同于您帐户名称的自定义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.
相关问答
更多-
自定义域Github页面(Custom Domain Github Pages)[2022-07-24]
您的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 ...
-
github页面自定义域(github pages custom domain)[2022-10-30]
除了在地点( 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回购并将其包 ...
-
GitHub页面网站重定向到自定义域而不是index.html(GitHub pages site re-directing to custom domain instead of index.html)[2022-02-11]
您必须清除缓存。 我第一次访问 “minegamer5570.github.io/Filehub/index.html” 没有重定向 You must clear your cache. My first visit to "minegamer5570.github.io/Filehub/index.html" has no redirect -
如何让谷歌索引我的自定义域而不是github页面域?(How to make google index my custom domain instead of the github pages domain?)[2023-09-01]
我想我找到了解决方案。 离开它,因为它可能对别人有帮助。 我现在需要等待谷歌重新索引,但它应该这样做。 根据这个问题和这个谷歌文章头部的规范链接标签应该修复它。 我还添加了一个js重定向技巧来重定向来自谷歌的人。 if ( window.self === window.top ) { // console.log("not in a frame") window.loc ...