META-tag and redirect

Posted on 2006-06-04
Last Modified: 2012-06-21

I have the following question when a page is redirected. Say that the META-tag looks like this:
<META http-equiv=refresh content=0;URL=index.php>

When loading a page "" this is redirected to "" and not to "".

My question simply is if "../home/.." is default when using redirection without a full http-reference?

Question by:jespersahner
    LVL 37

    Expert Comment

    by:Harisha M G
    Hi, I don't know why it is redirecting to that page. Ideally, it *should* redirect to "" See and confirm where exactly the index page of the site exists.

    LVL 9

    Expert Comment

    The URL you coded is relative, so it looks for index.php in the directory you are in. If you want, you can put a leading / so it looks like:
    <META http-equiv=refresh content=0;URL=/index.php>
    and see if that works better.

    Author Comment

    Is the point, that the server looks for "index.php" in a root-folder (in this case "../home/.."), which is set up internally by the server and which therefore is not visible to the user in the HTML until the redirection the actually carried out and the redirected page is shown in the browser?

    Expert Comment


    try that:

    <META http-equiv=refresh content=0;URL=home/index.php>
    LVL 14

    Accepted Solution

    You can also use an absolute link to be on the safe side:
    <META http-equiv=refresh content=0;URL=>

    >>if "../home/.." is default when using redirection...<<
    No, it is not. It is possible to have URL rewriting but it has to be set in place manually, so unless you did it yourself it is unlikely that your site has anything that automatically redirects links to a /home/ folder.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

    779 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

    15 Experts available now in Live!

    Get 1:1 Help Now