Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7928537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:45:38+00:00 2026-06-03T19:45:38+00:00

Is this relative location html header absolutely compatible with all browsers at all platforms?

  • 0

Is this relative location html header absolutely compatible with all browsers at all platforms? Any standards ?

Location: some_script.php?la=2&po=2030

I mean, will it always redirect to some_script.php at the current dir or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:45:40+00:00Added an answer on June 3, 2026 at 7:45 pm

    The standard would be this:

    header('Location: http://www.mywebsite.com/yourpage.php?id=32', TRUE, 302);
    

    But to answer your question, yes it will redirect to the page X in the current folder if you don’t put a slash at first or a complete URL.

    Here’s an idea I would suggest you do for every website you do. In your primary file (the main php file you use like config or whatever), create something like that :

    define('URL', 'http://www.mywebsite.com/');
    

    So when you create a redirection, a link or whatever, you do this :

    header('Location: '.URL.'yourpage.php?id=32', TRUE, 302);
    

    EDIT: November 2017. As pointed by @jordanbtucker below, the HTTP spec has been updated in June 2014 (this post is from 2012) to allow relative URIs in the Location header.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In CSS, any image path is relative to the CSS file location. f.ex if
I have designed the screen using this relative layout. <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android
This one has me stumped. Here are the relative bits of code: public AgencyDetails(Guid
I first ran into this when trying to determine the relative performance of two
I have this layout that works correctly, a relative layout with a text view
Our system directs users to a relative path in this format: /some_path/?query=string The server
Can I apply both position: relative and float: left on one element? Like this:
I have python .egg files that are stored in a relative location to some
I would like my tinymce editor to allow all the html elements, include some
Let's say I have a Control and its location is relative to its parent.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.