OutFront Forums
     Home    Register     Search      Help      Login    

Sponsors
Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax
Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.
Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Follow Us
On Facebook
On Twitter
RSS
Via Email

Recent Posts
Todays Posts
Most Active posts
Posts since last visit
My Recent Posts
Mark posts read

 

How to redirect URL to a different site?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> How to redirect URL to a different site?
Page: [1]
 
 
Lanimilbus

 

Posts: 41
Joined: 9/6/2005
Status: offline

 
How to redirect URL to a different site? - 1/20/2010 19:49:41   
Hello,
I have a Frontpage gallery page on my website which is linked to on over 50 other pages on the site. I'd like that page to redirect to a page on Flickr.com instead from now on. Instead of manually editing each one of the pages that link to the FP gallery and then uploading them all one by one, I'd like to just have that same link URL redirect to the Flickr page instead when it's clicked.

So, for example, the link on my site would be something like this:

www.example.com/gallery2010.htm

And when people visit it, they are redirected to the Flickr page instead.

How can I do this?
I wasn't sure whether to ask on the Frontpage forums or on my hosting site's forums (or somewhere else entirely) but I figured someone here might be able to help.

Thanks!
jurgen

 

Posts: 446
Joined: 1/9/2007
From: Castle Rock, Colorado
Status: offline

 
RE: How to redirect URL to a different site? - 1/20/2010 20:04:46   
Put the below code in the head section of your gallery page. However, be aware, your visitors will be redirected and leave your site. It will not open in a new window.

<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">

(in reply to Lanimilbus)
Lanimilbus

 

Posts: 41
Joined: 9/6/2005
Status: offline

 
RE: How to redirect URL to a different site? - 1/21/2010 1:35:16   
EDIT: At first I ran into some problems but I figured out it was because an extra "http://" was needed.

That code worked, thanks jurgen!

Now, I don't suppose there's some way to get it to open in a new window? Or would I have to manually add this before every instance of the link on all the different pages:

<a target="_blank" href=


< Message edited by Lanimilbus -- 1/21/2010 1:52:20 >

(in reply to jurgen)
bobby

 

Posts: 11828
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: How to redirect URL to a different site? - 1/21/2010 11:31:04   
does Flickr offer tools to embed content on your site so you don't have to redirect?

_____________________________

Talk to your kittens about catnip, or someone else will.


:)

(in reply to Lanimilbus)
womble

 

Posts: 6285
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: How to redirect URL to a different site? - 1/22/2010 14:41:02   

quote:

ORIGINAL: bobby

does Flickr offer tools to embed content on your site so you don't have to redirect?


Flickr does have a variety of ways you can link to your content and embed it into your site (I did it with a client site about a year ago). There's also other services, such as Photofront that can be used to embed Flickr galleries into your site.

quote:

I don't suppose there's some way to get it to open in a new window?


The only way you can do it is to use the "target blank", but while it's not deprecated if you're using HTML 4.01 (though it is in XHTML) modern browsers with tabs will allow you to specify whether links should open in a new tab, the same tab, or a new window, and it's never a good idea to try and force a different behaviour on users, who will have set their preferences for how they want their browser to behave.

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~

(in reply to bobby)
BobbyDouglas

 

Posts: 5577
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: How to redirect URL to a different site? - 1/23/2010 1:17:49   
I would suggest you use a 301 redirect - 301 tells the browser (and search engines) that your page has moved permanently.

Since your current page is .html, it is easier to do it via .htaccess (if the page was php or asp, there are other ways you can do this).

For implementing a 301 redirect via .htaccess (linux servers):

1) FTP into your website, look for a .htaccess file in your www or public_html folder (this is the folder that all of your files are in). If you do not have one, you'll need to create it * see the notes at the bottom for that*. Notice the initial period "." prior to the word "htaccess"
2) Edit the file and add the following line to the bottom:

Redirect 301 /gallery2010.htm http://www.flikr.com/mygallery/gallery.html

3) Save the file and make sure it worked. If you come up with any errors on your website, you'll want to reverse the changes and contact your host.

If you do not have an .htaccess file, you can create one yourself.

1) Create a text file with the corrent information inside it (the redirect script from above).
2) Upload the text file via FTP
3) Rename the text file to ".htaccess" - do not leave .txt at the end of the file, simply name it .htaccess

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to womble)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> How to redirect URL to a different site?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts