Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: RoflGuy - toukokuu 26, 2011, 09:58:20 AP

Otsikko: Auto redirect
Kirjoitti: RoflGuy - toukokuu 26, 2011, 09:58:20 AP
Um,

is their a way that when someone enter a website it auto redirect him to other? like it shows to him your going to be redirected to new website ...

i seen it somewhere but can't find it anymore
Otsikko: Re: Auto redirect
Kirjoitti: IchBin™ - toukokuu 26, 2011, 11:41:08 AP
www.w3schools.com/html/tryit.asp?filename=tryhtml_redirect
Otsikko: Re: Auto redirect
Kirjoitti: RoflGuy - toukokuu 26, 2011, 12:37:21 IP
Um, but where i put that?

do i delete all smf?
Otsikko: Re: Auto redirect
Kirjoitti: IchBin™ - toukokuu 26, 2011, 12:53:16 IP
Well you need to provide details if you want a detailed answer. Where are you redirecting them from? Where are you redirecting to?

The page I linked you to basically just redirects someone if they hit the file you put that code in. So if you have a file at example1.com/index.html and you want example1.com/index.html to go to example2.com/index.html, then you just put the code in the example1.com/index.html.
Otsikko: Re: Auto redirect
Kirjoitti: RoflGuy - toukokuu 26, 2011, 01:00:58 IP
ye i see , im redirecting from bos-servers.co.cc to sn-server.co.cc


what i want is that if someone just writed bos-servers.co.cc it redirect him to sn-server.co.cc
Otsikko: Re: Auto redirect
Kirjoitti: IchBin™ - toukokuu 26, 2011, 01:05:38 IP
Put the code for the redirect that I showed you on that page, into your default index file at bos-servers.co.cc. In the redirect point the code to sn-server.co.cc. If you're looking to do a redirect for ALL links at bos-servers.co.cc, you should consider adding a forward at your domain registrar.
Otsikko: Re: Auto redirect
Kirjoitti: RoflGuy - toukokuu 26, 2011, 01:20:20 IP
i deleted the smf of bos xD

do i reinstall?
Otsikko: Re: Auto redirect
Kirjoitti: IchBin™ - toukokuu 26, 2011, 02:47:06 IP
Nope, just add a index.html into that place and put the code in it. No need to have SMF installed where you are not going to use it.
Otsikko: Re: Auto redirect
Kirjoitti: HunterP - toukokuu 26, 2011, 05:20:44 IP
Lainaus käyttäjältä: killerftw - toukokuu 26, 2011, 01:00:58 IP
ye i see , im redirecting from bos-servers.co.cc to sn-server.co.cc
what i want is that if someone just writed bos-servers.co.cc it redirect him to sn-server.co.cc

It's beginning to look a bit like "redirection day" today, but you might want to add a .htaccess file containing :

Redirect 301 / http://sn-server.co.cc

And place this file in the root of the "bos-servers.co.cc" server.
Otsikko: Re: Auto redirect
Kirjoitti: Aleksi "Lex" Kilpinen - kesäkuu 14, 2011, 08:05:04 AP
Hi killerftw - Are we ready to mark this solved, or is there something you need further asssistance with? :)