I use CodeIgniter, how to redirect user to gmail.com after hitting on a link ? I'm really stuck to do that because the link is out of my site.
Something like:
<?php echo $billet->Courriel;?>
simple use like below
Gmail
add http:// before URL
Related
I'm new to codeIgniter. Can you tell me, how to link to other website url in codeIgniter?
I tired to do like this:
google
But instead it gives me this
google
It always refers to the base url, even though I don't echo base_url(); on the href.
Thanks
When creating links to external pages, you must prefix the URL with either http:// or https:// , like this:
google
Technically this has little to do with CodeIgniter, but a difference between relative and absolute URLs.
If you did want to use CodeIgniter to generate the link, do this:
$this->load->helper('url');
echo anchor('http://www.google.com', 'Google');
I want to redirect my image when it clicked.. so here is my code in view
<a href="www.accorhotels.com" class="work-ext-link">
but its always error with the route, is there any solution to directly go to that website without using route and controller?
Use "http" before:
my link
I am wondering if that is possible to view the admin login page just by typing /CI_ADMIN after the domain name just like we do in wordpress.
http://www.abc.com/wp-admin
and I want to do
http://www.abc.com/ci-admin
for my codeigniter website. is that possible ? the url thing
you can do this with routes just define route in you routes.php file
$route['ci-admin'] = 'ci_admin/login';
for more how to create admin panel please read this article specially third method
CI Admin panel
I'm using the Facebook php sdk to authenticate users from my website. However after successful authentication, the URL goes to:
http://URL/?state={STATE}&code={CODE}
How can I remove the state and the code from showing up?
I'm using Codeigniter and Nginx so .htaccess is not working..
Thank you
rewrite ^(.+)?state=(.+)&code=(.+) www.yoursite.com$1 permanent;
I want to redirect my all old url to new url.
My few old URLs are
domain.com/
domain.com/submit
domain.com/get/soft-name
domain.com/most-downloaded
etc, etc,
Now i want to redirect my all url to
domain.com/en
domain.com/en/submit
domain.com/en/get/soft-name
domain.com/en/most-downloaded
I am using CodeIgniter. Please Suggest me some code for route.php
thanks in advance
If you want to handle this in your routing, you could just do this:
$route['(:any)'] = "en/$1";