English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

hi all..
basically i have a menu like this:

  • Home
  • Politics
  • Sports
  • Weather

  • This menu works good for today. This is a news website so i have to save every page on my server for future reference by creating the directories like 2006/sep/5/index.php , then 2006/sep/5/sports/sports.php , then 2006/sep/5/politics/politics.php. When i include the menu.php(now its in the 2006/sep/5/menu.php) in 2006/sep/5/index , 2006/sep/5/sports , 2006/sep/5/politics pages, i m getting the links as www.mysite.com/index.php , www.mysite.com/sports/sports.php ..etc instead of www.mysite.com/2006/sep/5/index.php.

    am i clear with my problem ?? I have to show the webpage for today as well as for tomorrow(as a old page).

    2006-09-07 10:54:48 · 2 answers · asked by sathesh 1 in Computers & Internet Programming & Design

    2 answers

    Either use relative paths (../politics/politics.php) or define a base path in each page. The statement goes in the head section of each page in the sep/5/ domain.

    2006-09-07 13:41:29 · answer #1 · answered by injanier 7 · 0 0

    You're using a "absolute" path by starting it with "/". Use "../" instead.

    2006-09-07 17:58:01 · answer #2 · answered by sethsdadiam 5 · 0 0

    fedest.com, questions and answers