Learn how to a build a cloud-first strategyRegister Now


META-tag and redirect

Posted on 2006-06-04
Medium Priority
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 "http://www.mypage.com" this is redirected to "http://www.mypage.com/home/index.php" and not to "http://www.mypage.com/index.php".

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
ID: 16826985
Hi, I don't know why it is redirecting to that page. Ideally, it *should* redirect to "http://www.mypage.com/index.php" See and confirm where exactly the index page of the site exists.


Expert Comment

ID: 16827185
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

ID: 16830171
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

ID: 16834043

try that:

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

Accepted Solution

Esopo earned 375 total points
ID: 16834170
You can also use an absolute link to be on the safe side:
<META http-equiv=refresh content=0;URL=http://www.mysite.com/index.php>

>>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.


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

810 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