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 6330689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:54:59+00:00 2026-05-24T17:54:59+00:00

If my path is http://www.example.com/folder1/folder2/ how can I return to http://www.example.com/folder1/ I’ve tried <a

  • 0

If my path is “http://www.example.com/folder1/folder2/&#8221; how can I return to “http://www.example.com/folder1/&#8221;

I’ve tried

<a href="../">Back</a>

Which get me back to “http://www.example.com/&#8221; and not the previous folder. Any clue on how to do it ?

EDIT

I have a

<base href="http://www.example.com/" />

in the head, could it be because it try to go down 1 folder from that base ?

  • 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-05-24T17:55:00+00:00Added an answer on May 24, 2026 at 5:55 pm
    <a href="..">Back</a>
    

    Should work if you drop the trailing slash. Don’t really know why it wouldn’t work with it but if it’s not working, try that…

    EDIT Just tested and both versions worked for me in IE8 – what browser are you using to test it?


    Another Edit

    If you use a <base> tag, all relative hrefs will be relative the href attribute specified as the <base> (thats the point of it). If your base is the root of the site, like http://www.example.com/, links that try to step down a directory won’t make any sense, since there’s nowhere lower to go, and they will just point to the root directory. However, if the base is the root of the site, there’s probably no point in having one at all, since this is, effectively, the default – it would only make a difference if you were working from a higher level directory.

    If the base is not the root, but somewhere higher (like http://www.example.com/somedirectory/) there is a point in the base declaration, but you have to make a decision – something would have to be specified absolutely. So if you have done it because you want to refer to all your images as just file.jpg instead of /somedirectory/file.jpg, you either need to change your image references to the absolute /somedirectory/file.jpg, or have your ‘navigation links’ like the one shown in the question specified absolutely. You can’t do both.

    I would say (although I don’t know much about the rest of your site and how it was built) that your best bet is to scrap the <base> in order to allow for relative navigation links, but the choice is yours…

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

Sidebar

Related Questions

I'm attempting to redirect /fourm/ on my website back to http://www.example.com I've come up
In the path: Format: http://mydomain.com/ {category}/{subcategory}/{pageNumber}/{pageSize} Example: http://mydomain.com/books/thriller/3/25 In the querystring: Format: http://mydomain.com/ {category}/{subcategory}?
I need a regular expression to extract from two types of URIs http://example.com/path/to/page/?filter http://example.com/path/to/?filter
If I have a URL that is http://www.example.com/sites/dir/index.html , I would want to extract
In other words, does it matter whether I use http://www.example.com/ or http://wwW.exAmPLe.COm/ ? I've
I have a problem with following tutorial: http://www.mkyong.com/jsf2/jsf-2-internationalization-example/ In faces-context file you have to
I have a website that opens when the user enters either http://example.com or http://www.example.com
I have a base URL : http://my.server.com/folder/directory/sample And a relative one : ../../other/path How
What would the relative path of the following url be? http://domain.com/wp-content/themes/themename/images/breadcrumb_sep.png
I have a website sitting on an IIS 7 server: WWW.example.COM I would like

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.