Help With Links - using /page instead of http://site.com/page

free web hosting
Open Discussion > General > Hosted Members Area

Help With Links - using /page instead of http://site.com/page

AlternativeNick
hi, im having a bit of a problem... i know that this is possible, but not sure how :S

how can i have a link to another directory on my site, say the setup is like this
CODE

Index
|    |
|    |___Dir 1--> Page 1
|                  --> Page 2
|
|____Dir 2--> Page 3
               --> Page 4


Just wondering how i could link from page 1 to page 4 without using http://sitename/dir2/page4

if you understand. :S

I know that for linking to subdirectories, its just /subdir/page

Notice from BuffaloHELP:
Try not to use "site (dot) com" it's actually a site. Instead try sitename or domain_name

 

 

 


Reply

jlhaslip
Use Relative addressing by inserting "../" in the link paths to "go back one folder".

I wrote a small test for doing this once and I still have it uploaded, so here is the URL: http://www.jlhaslip.trap17.com/testserver/index.html.

Do a view source of each page to see how the "../" can be used. The "../" takes you back one directory on the path, but then you need to add the folder names to travel down towards the target file. Only other way is to use php coding, or another scripting language.



Reply

AlternativeNick
well thanks xD thats acually exactly what i was looking for, cya

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : links, page, http, site, page

  1. Trap17 Registration Page Linkage Errors
    (1)
  2. Cannot Open My Site
    (12)
    Hi everyone. Sometimes, I cannot connect with my site, neither ftp, ping, etc. This happens
    everyday, and sometimes, as a miracle, doesn't happen. This also happens with a friend of mine
    with the same ISP. I contacted my ISP, and they told me that there must be a prob with the server,
    not the ISP itself. Do you have any ideas? Thanks in advance, Alex btw, proxy browsing sucks!
    /blink.gif" style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />....
  3. Please Review My Site
    (10)
    I've had the same layout for ages but I decided that it's time to get a proper review. My
    website url is: http://princesstimes.com I'd like to know what you think of the layout and
    navigation. Content-wise I don't really need reviews because my website has always catered to
    a specific group of audience so I don't know if everyone here appreciates my content and I
    wouldn't want half-baked criticisms about things they don't understand. But if you want to
    comment on my content, I won't stop you, just that I probably won't take your ....
  4. Central-gaming. Please Review.
    My new gaming site, that's taken me a few weeks to develop. (4)
    We have come to the time where we must advertise to get some more members. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> I have finally and officially
    opened up Central-Gaming. A gaming website and forum for people who love to play games, discuss
    games and that lot. Our forum may look boring when your viewing as a guest. We protect our other
    content on the forum from Guests for a good reason, and it is suppose to attract more members into
    joining us. So if your a gaming gamer who loves and/or likes to play games, join us now and get....
  5. Review Innosia.com
    please review my website, this site is currently in trial and testing (6)
    Dear all, Please help me visit http://www.innosia.com This site is about spiritual (lots) and
    computer (still few), and it discusses several spiritual perspective about life and hence has the
    foundation from spiritual teachers who I have met myself and have seen his way of life, way of
    thinking and his much every aspect of life. He can tell something that you don't know as
    spiritual is a way to achieve something miraculously, he often able to know your mind, your thinking
    and always give the best way of understanding yourself so that you could become better by bui....
  6. I Can't Find The Password Reset Page... [resolved]
    (5)
    I can't find the password reset page (I know it costs credits to request) Can anyone give me
    the link please to that page, it has other options too if i remember. Thanks....
  7. Cant Log Into Cpanel [resolved]
    Page cant be displayed (11)
    Help I can not log into cpanel. I just upgraded to IE-7 and now I can not get into my Cpanel. what
    the page is telling me is this. QUOTE Internet Explorer cannot display the webpage Most
    likely causes: You are not connected to the Internet. The website is encountering problems. There
    might be a typing error in the address. What you can try: Diagnose Connection Problems
    More information This problem can be caused by a variety of issues, including: Internet
    connectivity has been lost. The website is temporarily unavailable. The D....
  8. I Can't Seem To Access My Site.
    (8)
    I try to go to my hosted site http://saitunes.trap17.com and it just thinks, then it says the
    operation timed out. Can anyone else access my site?....
  9. My Ro Page
    (4)
    I designed my own website and code it xD this website is for my server JevilRO www.jevilro.com....
  10. Problem With The Trap17 Forum
    Inconsistent links and problems with "Latest Activity" (4)
    Hi, I have noticed a bit of a problem with the forums here on Trap17. I don't know if this is a
    problem with the Trap17 implementation, or with Invision Power Board in general, or with a mod that
    is running on the forums here, and I'm sure that someone smarter than me can isolate the source
    of the problem. What I have noticed firstly is that the link that is generated in the top right
    corner of a post within a thread, the link to that particular post (I'll call that the linkback
    link), sometimes links to the post itself, but often just links to the thread. T....
  11. Forum News And Shoutbox On Homepage
    On the main site, not forum. (4)
    I have found a modification that allows us to use a mod called IPB News and Shoutbox on the
    Homepage . I am using these for my site. Well installing. /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" /> Try them out /wink.gif" style="vertical-align:middle"
    emoid=";)" border="0" alt="wink.gif" />....
  12. My Site Is Crippled.
    I can't access anything (10)
    Hey guys please help. I haven't been able to access my cPanel for a long time now. I think the
    problem started when most members had those password problems. I think that's when I made too
    many unsuccessful login attempts. Now I can't access my cPanel and any site hosted here. Someone
    told me my IP is blocked but I don't know who to tell to have the problem resolved.
    BuffaloHelp(sorry if it wasn't u Buff) stated in one post that he could reset password if nayone
    would write a post with the line "Please reset my password". I did that but still there is....
  13. [aef] Most Recent Topics Listing Mod
    on your Web-site pages (2)
    Assuming that you have an AEF Forum software installed on your Hosting Account, and that you need
    to display a list of the most Recent Topics to be display, say, on your Index page, then read this
    Tutorial. To begin, Define the variables that you need to connect to the Database and also define
    the URL to the Forum in the prescribed format as follows: CODE <?php //start the script
    //define db information here DEFINE ('DB_USER', '  '); // required info
    DEFINE ('DB_PASSWORD', '  '); // required info DEFINE ('....
  14. Site Help
    Been reviewed but needing ideas (6)
    Well seems as some like and some dislike Echo-Of-Thunder we have a few members, which is nice. and
    PLEASE do not think this is spam to get ppl to join, IT'S NOT! What I am curious to know is
    how I can inprove the site to get more members. I had been thinking of maybe adding a radio station
    of my own. I know Bandwith. There is a chat, which nobody uses. I know some do not like or really
    understand weather. Maybe that is the problem I dont know. I have spent a lot of my time on this
    site, and really would like it to be one of the better weather sites on the n....
  15. My Site Is Down :(
    (11)
    QUOTE http://frover.trap17.com/qyfyre.com it has been down since yesterday /sad.gif"
    style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />....
  16. Web Design For New Bie
    its a learnng topic for how to design and maintain a web site (17)
    Hi, i had started a new topic, coz i would like to learn - how to start a new web site and manage
    it, how ever i am good at desktop programming....
  17. Can Someone Rate My Site?
    Well i created this site about a month ago and i need some tips (12)
    I'm not as advanced as other website designers, but about a month ago i designed this local news
    website. I need someone to rate it and tell me what they think and give me some pointers to fix it
    up or even change the look completely. I've changed the design about 3 times already. It
    contains local news about my home country Belize and i only take about an hour to update daily. Any
    pointers, suggestions, questions i will appreciate. Armond Times Belize ....
  18. PHP Function To Add Previous and Next Page Feature
    useful php function (5)
    CODE <?php function navigationbar($start_number = 0, $items_per_page = 50,
    $count) {    // Creates a navigation bar    $current_page =
    $_SERVER["PHP_SELF"];     if (($start_number < 0) ||
    (! is_numeric($start_number))) {         $start_number = 0;     }
        $navbar = "";     $prev_navbar = "";     $next_navbar =
    "";     if ($count > $items_per_page) {         $nav_count = 0;
            $pag....
  19. Best Browser To Desighn Your Site To
    not much of a question but more like a statement (28)
    well since i started web desighning i've always used internet explore (why?) well when i first
    tried FF2, i wasn't a "web-designer" then so i didn't care much about css and htlm stuff, i
    din't like it and one of the reason was beacause a couple of the sites i visited wasnt firefox
    compatible. but anyways recently i was desighning a site for this community. so like two weeks ago i
    downloaded FF3 for testing purposes. in IE the site looked great but what i found was that in
    firefox the site was horible, as bad as they could come. so since firefox was better....
  20. Review My Site
    Review my site please (30)
    Hello. I am new here to trap17.com and would really like some input on my site. Echo Of Thunder
    Made using Dream Weaver and note pad. Planning on a better forum and chat page as time goes by.
    This is just a little hobby that I have. "weather" and I hope that you all here at trap17 will take
    a look see, and tell me what you all think. ....
  21. Review My Site?
    At www.chantellepaige.org (16)
    Ok.. so. after almost trowing up on how disgusting my site used to look. i tried something
    different.. please visit here . Its a flipsyde & chantelle paige fansite.. doubt you know who
    they are.. but still i need opinions & advice on the way the site looks XD....
  22. Job Site
    Colors alright? (9)
    http://www.jzambrano.trap17.com I've had this site for a while but have been starting to
    question whether I perhaps should change the colors to something less vivid and more neutral like
    navy blues, greys, etc. Do you think it needs to be changed, and if so, to what? Also, if you
    have any thoughts on site features or constructive criticism about the site, that would be
    appreciated too.....
  23. Forget Adsense. Try Widgetbucks.com
    earn more money with your site (44)
    Hello . A new company that blow all the Google Adsense program is here , idk if its operating
    from long time , i dont think soo but its realy realy good. Forget of 0.01 $ from Google
    Adsense , Widget pays you from 0.45 pay per click no less depending what widget you choose ,
    3$ at 1000 immpresions . I put Laptops widgets and i get 0.45 $ no less . Its more
    then good in one day ived made 30 dollars from 1 site and i have more then one Register now and
    you get 25 $ BONUS : Please signup over the link below . Thanks http://www.wid....
  24. Check This Totally Css Site Out
    (6)
    Check out this and give me ur opinion www.eskiotongroup.com....
  25. Real Paying Site
    Easy and quick (10)
    That site really pays and I have recieved my first payment of 10 dollars. This is really easy not
    much of a big minimum payout and if you want you too can make money by just going here and signing
    up http://adbux.org If you want please do add me as a referrer as zak92 Thank you.....
  26. Add A Blog To Your Site
    (12)
    Google bots are so clever that they frequently visit the sites that are updated frequently and give
    them more importance while displaying the results i.e. in top results. So inorder to make your site
    appear in the top search results add a blog to your site and keep posting important and interesting
    facts related to your website frequently in your blog this will help you to move up rapidly in the
    search results. for example my blog tuticorinnews.blogspot.com is relatively very new but it
    ranks in the top 10 postion in the search for key words related to "Tuticorin" m....
  27. Harry Potter Roleplay Site
    suggestions, comments, all welcome (6)
    Hi, everybody, I recently finished a harry potter roleplay site of mine that's a subdomain on my
    main site (thenr.net) the url of my harry potter site is http://morsmorde.thenr.net We currently
    have 8 members, but are hoping to grow quickly, and we're looking for experienced, seasoned
    roleplayers. Many main characters are still free, the site is also all canon, one of very few all
    canon sites on the web. - we're in dire need of members to get the fun starting - Anyway, check
    it out and tell me what you think! (I'm Cedric Diggory on the site). Tha....
  28. Help In Ipb 2.1.6 Portal Page
    plaese help me (2)
    hi any 1 know how can a add my topics in ipb poratl page in my server i uploaded ipb 2.1.6 plaese
    tell me. like this site.....
  29. Inbox Dollars
    Best Money making Site-I Got Paid (31)
    Inbox Dollars is a great site that i found when i was browsing around the net. This Site Offers you
    3 different reward chioces and they are: - 10000 Banner Imprressions- $10 - Gold Membership
    -$17 - Check- $30 I have already gotten the 10000 banner impressoins from them. The ways
    you can earn money are: -$5 when you join the site... -$0.01-0.10 for every paid email
    -$4 for every survey site you join -Up to $50 for for every offer -Unlimited cash for
    games -Umlimited cash for shoppings The offers are very easy to fill out and you ge....
  30. Help To Get Traffic For New Site
    submitting url to google? (23)
    aye there, Just want to know the quickest and best way to start getting good ranks in google search
    engine. Im making a new site from scratch and i decided to use meta tags including the robots, index
    all tag. If i already have the robots tag on each of my pages, could i still submit my main URL to
    google ( http://www.google.com/addurl/?continue=/addurl ) and not worry about them ignoring it? or
    could i just leave my site as it is and google will automatcally send a spider crawl to my site and
    add it to their directory?.. im just confused about this all, i just want to ....

    1. Looking for links, page, http, site, page

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for links, page, http, site, page

*MORE FROM TRAP17.COM*
Similar
Trap17 Registration Page Linkage Errors
Cannot Open My Site
Please Review My Site
Central-gaming. Please Review. - My new gaming site, that's taken me a few weeks to develop.
Review Innosia.com - please review my website, this site is currently in trial and testing
I Can't Find The Password Reset Page... [resolved]
Cant Log Into Cpanel [resolved] - Page cant be displayed
I Can't Seem To Access My Site.
My Ro Page
Problem With The Trap17 Forum - Inconsistent links and problems with "Latest Activity"
Forum News And Shoutbox On Homepage - On the main site, not forum.
My Site Is Crippled. - I can't access anything
[aef] Most Recent Topics Listing Mod - on your Web-site pages
Site Help - Been reviewed but needing ideas
My Site Is Down :(
Web Design For New Bie - its a learnng topic for how to design and maintain a web site
Can Someone Rate My Site? - Well i created this site about a month ago and i need some tips
PHP Function To Add Previous and Next Page Feature - useful php function
Best Browser To Desighn Your Site To - not much of a question but more like a statement
Review My Site - Review my site please
Review My Site? - At www.chantellepaige.org
Job Site - Colors alright?
Forget Adsense. Try Widgetbucks.com - earn more money with your site
Check This Totally Css Site Out
Real Paying Site - Easy and quick
Add A Blog To Your Site
Harry Potter Roleplay Site - suggestions, comments, all welcome
Help In Ipb 2.1.6 Portal Page - plaese help me
Inbox Dollars - Best Money making Site-I Got Paid
Help To Get Traffic For New Site - submitting url to google?
advertisement



Help With Links - using /page instead of http://site.com/page



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE