Redirect page on codeigniter |
06-13-2017, 08:45 PM
(This post was last modified: 06-14-2017, 12:26 AM by ciadmin. Edit Reason: sanitize possible seo spam links )
Dear All,
I want to ask, How to redirect the website page in codeigniter? Example : Hosting A : example.com/login want to redirect Hosting B : example.net/login Regards, Habib Musyaddat
You use your htaccess to redirect that domain redirect ... or you can use PHP location
Code: <IfModule mod_rewrite.c> Code: Redirect 301 /path/to/site/root/login http://www.example.net/login or, in PHP (although this required that example.com/login actually load, which seems pointless...) PHP Code: header('Location: '.$newURL); |
Welcome Guest, Not a member yet? Register Sign In |