Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 06-18-2009, 12:24 PM   #1
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default HTML Re-Direct Question

Hey guys,

For a re-direct, I've been using a file that someone gave me to use. Basically I create a "Recommends" folder and then create another folder with whatever I'm recommending and place this file in as the index.html.

For example, mysite.com/Recommends/BlueWidgets

However, I've noticed that although the re-direct works fine, it re-directs in the same window.

I would like for it to open in a new tab whenever someone clicks on one of the links.

I know it's something simple but I thought I'd ask here instead of trying to figure it out myself.

Here is the html I'm using.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta http-equiv="Refresh"
content="1; URL=DESTINATION URL HERE" />
<title>DESTINATION TITLE HERE</title>
</head>
<body>
<br />
</body>
</html>

So basically I want that the links to open in a new tab.

I would be very grateful for your help.

Thanks in advance!
Pat Jackson is offline   Reply With Quote
Old 06-18-2009, 12:59 PM   #2
MinisiteBee.com Designer
War Room Member
 
soffell's Avatar
 
Join Date: Aug 2008
Location: Dieng Plateu
Posts: 523
Blog Entries: 5
Thanks: 129
Thanked 95 Times in 39 Posts
Social Networking View Member's Twitter Profile 
Contact Info
Send a message via Skype™ to soffell
Default Re: HTML Re-Direct Question

Try this :

-----
-----
<meta http-equiv="Refresh"
content="1; URL=DESTINATION URL HERE" target="_blank">
-----
-----

soffell is offline   Reply With Quote
Old 06-18-2009, 01:26 PM   #3
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default Re: HTML Re-Direct Question

Perfect!

Thanks for that.
Pat Jackson is offline   Reply With Quote
Old 07-14-2009, 12:37 PM   #4
Senior Warrior Member
War Room Member
 
Pat Jackson's Avatar
 
Join Date: Jan 2009
Location: Melbourne, Australia
Posts: 1,383
Thanks: 650
Thanked 191 Times in 129 Posts
Default Re: HTML Re-Direct Question

Ok I just had to bump this thread.

I've noticed that none of my links are opening up in new windows anymore.

This is exactly what I'm doing.

I'll link to mydomain.com/recommends/product1

Then inside the recommends folder I have a product1 folder and the index file looks like this;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta http-equiv="Refresh"
content="1; URL=www.domain.com" target="_blank"/>
<title>page title</title>
</head>
<body>
<br />
</body>
</html>

Obviously I have the real domain and page title, however, everything else is identical.

Can anyone of you see what could possibly be going wrong? It's annoying that it opens in the same window.
Pat Jackson is offline   Reply With Quote
Old 07-14-2009, 12:47 PM   #5
Chick Magnet
 
BurgerBoy's Avatar
 
Join Date: May 2009
Location: Kentucky, USA
Posts: 193
Thanks: 18
Thanked 22 Times in 19 Posts
Default Re: HTML Re-Direct Question

Quote:
Originally Posted by Pat Jackson View Post
Ok I just had to bump this thread.

I've noticed that none of my links are opening up in new windows anymore.

This is exactly what I'm doing.

I'll link to mydomain.com/recommends/product1

Then inside the recommends folder I have a product1 folder and the index file looks like this;

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1" />
<meta http-equiv="Refresh"
content="1; URL=www.domain.com" target="_blank"/>
<title>page title</title>
</head>
<body>
<br />
</body>
</html>

Obviously I have the real domain and page title, however, everything else is identical.

Can anyone of you see what could possibly be going wrong? It's annoying that it opens in the same window.
You're putting target="_blank" in the wrong place.

It should not be in the refresh code. It should be on the link itself.

mydomain.com/recommends/product1 target="_blank"

It would also be easier to use a php redirect instead of a refresh.

<?php
header( 'Location: http://www.WhereYouWantTheLinkToGo' ) ;
?>

That is all that would have to be on the redirect page without all of the other junk you have on it.

BurgerBoy is offline   Reply With Quote
Old 07-15-2009, 03:22 AM   #6
HyperActive Warrior
 
Join Date: Jul 2009
Posts: 258
Thanks: 0
Thanked 11 Times in 11 Posts
Default Re: HTML Re-Direct Question

I would recommend that you use Yournamerecommends.com - yournamerecommends Resources and Information.This website is for sale! which is better.

Joshua.E1 is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Website Design

Tags
html, question, redirect

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 05:30 PM.