Solved

url forwarding query

Posted on 2004-10-28
133 Views
Last Modified: 2013-12-24
I have a website http://name.differentsite.com which I run a discussion forum on but I want to set up a link (http://www.mysite.org/folder) which will automatically redirect to the different site. Is this possible? How would I do it? My website host says its not possible to be done direct from the server due to having frontpage extensions and therefore needs to be done from withing frontpage. This is what I don't know what to do though.
0
Question by:samrad
    8 Comments
     
    LVL 14

    Expert Comment

    by:hhammash
    Hi,

    Open http://www.mysite.org/folder
    Open the default page in that folder
    Switch to HTML view
    Add the following line to the top of the page between <head> and </head>

    <META HTTP-EQUIV="refresh" content="0;URL="http://www.name.differentsite.com">

    Now when the user type
    http://www.mysite.org/folder in the address bar,  he/she will be automatically and immediately directed to http://www.name.differentsite.com.

    hhammash
    0
     
    LVL 14

    Expert Comment

    by:hhammash
    Note:

    http://www.mysite.org/folder.

    The folder should be a subweb with a default.asp or index.asp in order to type folder name only, example:

    If the folder is a subweb and it is name UserForum the link will open by just using:

    http://www.mysite.org/UserForum

    The first page of the UserForum folder should be index or default.

    But if UserForum is just a folder

    you have to clearly specify the link as:

    http://www.mysite.org/UserForum/index.asp

    In both cases you have to open index or default in HTML mode and add the <meta> line I gave you above bewteen the <head> and </head> tags.

    Regards
    hhammash
    0
     

    Author Comment

    by:samrad
    I have done everything above. The folder is set up as a subweb and the only file in the folder is called index.htm.

    The only html in the index.htm is as follows:

    <html>

    <head>
    <META HTTP-EQUIV="refresh" content="0;URL="http://test.website.com"">
    </head>

    </html>

    It seems to just get stuck in a loop or something.

    Any suggestions?
    0
     
    LVL 14

    Expert Comment

    by:hhammash
    No, After URL you need to put the other site otherwise it will be a loop.

    <META HTTP-EQUIV="refresh" content="0;URL="http://www.name.differentsite.com">

    hhammash
    0
     
    LVL 14

    Expert Comment

    by:hhammash
    So, You have to addresses:

    Open the address http://www.mysite.org/folder in Frontpage
    Open index.htm which is inside the folder
    between the <head> and </head> tags put:
    <META HTTP-EQUIV="refresh" content="0;URL="http://www.name.differentsite.com">
    Save the page

    Now when the user types http://www.mysite.org/foler he/she will be redirected immediately and automatically to
    http:/www.name.differentsite.com

    hhammash
    0
     

    Author Comment

    by:samrad
    This is exactly what I have done. The URL is pointing to the different site but it just seems to get in a loop and doesn't redirect. I even tried just redirecting it to a random site e.b. bbc.co.uk but the problem is the same.
    0
     
    LVL 14

    Accepted Solution

    by:
    Try this code:
    <meta http-equiv="Refresh" content="0; url=http://www.name.differentsite.com">
    0
     
    LVL 14

    Expert Comment

    by:hhammash
    The previous code had an additional "
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    Suggested Solutions

    This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
    When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
    The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
    The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

    857 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now