Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > HTML
Reload this Page HTML Redirect Help
HTML Discussion of HTML belongs here.

HTML Redirect Help

Reply
 
LinkBack Thread Tools Display Modes
HTML Redirect Help
Old
  (#1)
wweice is Offline
Senior Member
wweice
 
wweice's Avatar
 
Posts: 877
Join Date: Feb 2009
Age: 12
Rep Power: 0
  Send a message via AIM to wweice Send a message via MSN to wweice Send a message via Yahoo to wweice  
Default 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 View Post
Goodbye, yomaster. Good luck in your future.

May the Lord be with you.
  
Reply With Quote
Old
  (#2)
madaco is Offline
Member
madaco has a little shameless behaviour in the past
 
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
   
Default 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...
  
Reply With Quote
Old
  (#3)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Thursday, September 17th, 2009

Let me google that for you




Bored.
Send me a PM for a Lockerz.com invite!
  
Reply With Quote
Old
  (#4)
wweice is Offline
Senior Member
wweice
 
wweice's Avatar
 
Posts: 877
Join Date: Feb 2009
Age: 12
Rep Power: 0
  Send a message via AIM to wweice Send a message via MSN to wweice Send a message via Yahoo to wweice  
Default 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 View Post
Goodbye, yomaster. Good luck in your future.

May the Lord be with you.
  
Reply With Quote
Old
  (#5)
Bollivierke is Offline
Über Member
Bollivierke is on a distinguished road
 
Bollivierke's Avatar
 
Posts: 4,036
Join Date: Jul 2007
Location: Belgium
Age: 15
Rep Power: 35
  Send a message via AIM to Bollivierke Send a message via MSN to Bollivierke  
Default Thursday, September 17th, 2009

Quote:
Originally Posted by wweice View Post
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!
  
Reply With Quote
Old
  (#6)
wweice is Offline
Senior Member
wweice
 
wweice's Avatar
 
Posts: 877
Join Date: Feb 2009
Age: 12
Rep Power: 0
  Send a message via AIM to wweice Send a message via MSN to wweice Send a message via Yahoo to wweice  
Default 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 View Post
Goodbye, yomaster. Good luck in your future.

May the Lord be with you.
  
Reply With Quote
here
Old
  (#7)
madaco is Offline
Member
madaco has a little shameless behaviour in the past
 
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
   
Default 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.
  
Reply With Quote
Old
  (#8)
Parefgr3 is Offline
Member
Parefgr3 is an unknown quantity at this point
 
Posts: 112
Join Date: Aug 2008
Rep Power: 0
   
Default Friday, September 18th, 2009

I prefer you learn more HTML, PHP, Javascript.
  
Reply With Quote
Old
  (#9)
andyh2 is Offline
Administrator
andyh2 is on a distinguished road
 
andyh2's Avatar
 
Posts: 1,838
Join Date: Jul 2007
Location: Iraq
Rep Power: 10
 Send a message via ICQ to andyh2 Send a message via AIM to andyh2 Send a message via MSN to andyh2 Send a message via Skype™ to andyh2 
Default 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

  
Reply With Quote
Old
  (#10)
madaco is Offline
Member
madaco has a little shameless behaviour in the past
 
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
   
Default 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...
  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > HTML

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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
Copyright ©2006 - 2009, RancidKraut Industries