Welcome Guest, Not a member yet? Register   Sign In
Moved Permanent using CI
#1

[eluser]numb person[/eluser]
Hi...i want to make the website using CI but i need index.php not redirect to welcome.php, Cos it's effect on Google Indexing. So if make website use CI my status http code become 301 - Moved Permanently not 302 - Moved Temporary. anyone can help me? Thx
#2

[eluser]pistolPete[/eluser]
Either you could use .htaccess or the plain php header() function:
Code:
header( "HTTP/1.1 301 Moved Permanently" );
header("Location: http://www.sample.com/where_you_want_to_go");
#3

[eluser]numb person[/eluser]
[quote author="pistolPete" date="1227629786"]Either you could use .htaccess or the plain php header() function:
Code:
header( "HTTP/1.1 301 Moved Permanently" );
header("Location: http://www.sample.com/where_you_want_to_go");
[/quote]

If I use .htaccess how the syntax or maybe i can ask link about that and if I use php header() function where i set that code? Thx?
#4

[eluser]Colin Williams[/eluser]
Um... something's not clear here. CI does not redirect to the welcome.php controller file, or whatever your default controller is set to.
#5

[eluser]numb person[/eluser]
[quote author="Colin Williams" date="1227631813"]Um... something's not clear here. CI does not redirect to the welcome.php controller file, or whatever your default controller is set to.[/quote]

OK ... can u explain this :
http://www.seotoolset.com/cgi-bin/checkr...iahost.com

I need that become 301 - Moved Permanently and when I googling with keyword bizmediahost there are not list my originally website, just bizmediahost.com/faq.php listed on google
#6

[eluser]sikkle[/eluser]
hi numb,

You gonna need to give more information about environment, what happening, what going on with log, what htaccess you use, suphp ?

i mean lot of that is going with your dev env.

that being said, hope you feel the powah with this avatar.

see ya around




Theme © iAndrew 2016 - Forum software by © MyBB