| HTML Discussion of HTML belongs here. | HTML Redirect Help  HTML Redirect Help | | | | | Senior Member
Posts: 877 Join Date: Feb 2009 Age: 12 Rep Power: 0 | HTML Redirect Help -
Wednesday, September 16th, 2009
Ok, I DO have a website, and I am trying to make it so that if they visit the root domain (*.webs.com) it will redirect to my co.cc domain. I was wondering about this.:
Is there a code like this? Code: If domain = "*.webs.com" Then
redirect to "*.co.cc"
elseif domain = "*.co.cc" Then
End if
I know it's not the right code, I just used it like it was VB6 coding.
Please respond. Quote:
Originally Posted by Steven Goodbye, yomaster. Good luck in your future.
May the Lord be with you. | | |
| |  | | | | | Member
Posts: 175 Join Date: Mar 2009 Location: on the computer in a house, sometimes i travel tooter parts of the house, like my bed Rep Power: 0 | 
Thursday, September 17th, 2009
so you want if theyre on one webpage to go to another?
is there anything on the page you are redirecting from? are you rederecting everything on that site, or just everything that goes to that page?
i beilive i have the simple javascript for going to a site somewhere, but I dont know if that is what you want. do you just want if they go to one webpage, it takes them to another? vote docter octagonapus for president 2012 (sig started by a person( who might be me))
can someone please look at my thread on the serpenski triangle, and maybe say something about it? it can be negitive... | |
| |  | | | | | Über Member
Posts: 4,036 Join Date: Jul 2007 Location: Belgium Age: 15 Rep Power: 35 | 
Thursday, September 17th, 2009

Bored. Send me a PM for a Lockerz.com invite! | |
| |  | | | | | Senior Member
Posts: 877 Join Date: Feb 2009 Age: 12 Rep Power: 0 | 
Thursday, September 17th, 2009
Mkay, I have one site, *.webs.com, and I registered a co.cc domain for it, *.co.cc, so if they go to *.co.cc they will see the content for *.webs.com.
But I am trying to do is make it so they can't use the *.webs.com domain, if they are on the *.webs.com it will go to *.co.cc.
But if I added the redirect code to *.webs.com, the code would be on both domains, even if they were on the *.co.cc it would sent them to the co.cc domain. I am trying to make it so it redirects on the *.webs.com, but not on the *.co.cc domain. Quote:
Originally Posted by Steven Goodbye, yomaster. Good luck in your future.
May the Lord be with you. | | |
| |  | | | | | Über Member
Posts: 4,036 Join Date: Jul 2007 Location: Belgium Age: 15 Rep Power: 35 | 
Thursday, September 17th, 2009
Quote:
Originally Posted by wweice Mkay, I have one site, *.webs.com, and I registered a co.cc domain for it, *.co.cc, so if they go to *.co.cc they will see the content for *.webs.com.
But I am trying to do is make it so they can't use the *.webs.com domain, if they are on the *.webs.com it will go to *.co.cc.
But if I added the redirect code to *.webs.com, the code would be on both domains, even if they were on the *.co.cc it would sent them to the co.cc domain. I am trying to make it so it redirects on the *.webs.com, but not on the *.co.cc domain. | Oh, I don't have webs so I don't know what you can do with it.
Can you code your own php/html pages?
Then it shouldn't be that hard. Google really helps you with this. I'm sure there are sites that explain it. 
Bored. Send me a PM for a Lockerz.com invite! | |
| |  | | | | | Senior Member
Posts: 877 Join Date: Feb 2009 Age: 12 Rep Power: 0 | 
Thursday, September 17th, 2009
With webs you can edit your pages HTML and Javascript as well as add HTML and Javascript. No PHP on free hosting though. Quote:
Originally Posted by Steven Goodbye, yomaster. Good luck in your future.
May the Lord be with you. | | |
| |  |  here | | | | | Member
Posts: 175 Join Date: Mar 2009 Location: on the computer in a house, sometimes i travel tooter parts of the house, like my bed Rep Power: 0 | here -
Friday, September 18th, 2009
not that i know anything about this, but i think you may be able to get something from this javascript thing that dowlnoads a youtube video, i beilieve it checks what webpage your on. Code: javascript:window.location.href = 'http://youtube.com/get_video?video_id=' + swfArgs['video_id']+ "&l=" + swfArgs['l'] + "&sk=" + swfArgs['sk'] + '&fmt_map' + swfArgs['fmt_map'] + '&t=' + swfArgs['t'];
not sure it will help, but it might.
edit: im not sure this would work, but im guessing Code: if(window.location.href==*.webs.com)
{
the rederect thing
}
might help
also, i dont know how to make if statements in javascript, i just used the java format for the if statement, because i know that one best. vote docter octagonapus for president 2012 (sig started by a person( who might be me))
can someone please look at my thread on the serpenski triangle, and maybe say something about it? it can be negitive...
Last edited by madaco; Friday, September 18th, 2009 at 12:18am.
Reason: because I for some reason am incapable of succsefully firin mah lazor.
| |
| |  | | | | | Member
Posts: 112 Join Date: Aug 2008 Rep Power: 0 | 
Friday, September 18th, 2009
I prefer you learn more HTML, PHP, Javascript. | |
| |  | | | | | Administrator
Posts: 1,838 Join Date: Jul 2007 Location: Iraq Rep Power: 10 | 
Friday, September 18th, 2009
To do what you want, you'll need PHP. I'm not sure if you can do it in javascript, as i'm not very versed in it. FUCK DISNEY | |
| |  | | | | | Member
Posts: 175 Join Date: Mar 2009 Location: on the computer in a house, sometimes i travel tooter parts of the house, like my bed Rep Power: 0 | 
Friday, September 18th, 2009
why dont you just move the files from the .webs.com to the .co.cc?
im gonna try and see if what i said about the javascript works, maybe. vote docter octagonapus for president 2012 (sig started by a person( who might be me))
can someone please look at my thread on the serpenski triangle, and maybe say something about it? it can be negitive... | |
| |  |
Lower Navigation
| | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | PCL Forum Link brken as cpcheats.net redirect is broken. | | Forum Help and Suggestions | 3 | Friday, December 26th, 2008 01:57pm | | Update Redirect | | Forum Help and Suggestions | 1 | Saturday, November 29th, 2008 10:26am | | HTML | thefuzzle | Forum Help and Suggestions | 1 | Tuesday, November 25th, 2008 11:58pm | | Html help | PaperMario | General Chat | 4 | Tuesday, February 5th, 2008 07:11pm | | Best HTML Tut. Yet! | Eternal | General Chat | 2 | Monday, January 21st, 2008 03:54pm |
Powered by vBulletin® Version 3.8.3 Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com |