AGazzaz Posted September 18, 2007 Share Posted September 18, 2007 Hello,I have a folder called menu containing html files that are included in the page using php scriptie:<?php include("menu/index.html") ?>so now I have a Central location for my menu but if there is a file in any folder other than root i will get "404 Not Found" when I click on any link in this menuIs there is a way to solve this problem other than creating a menu folder for each level?Thanks in advance. Link to comment Share on other sites More sharing options...
justsomeguy Posted September 18, 2007 Share Posted September 18, 2007 Use absolute links. You can either give the fully-qualified path, or start the link with a slash, which indicates that it starts at the web server root. Link to comment Share on other sites More sharing options...
AGazzaz Posted September 18, 2007 Author Share Posted September 18, 2007 Use absolute links. You can either give the fully-qualified path, or start the link with a slash, which indicates that it starts at the web server root.Thank you justsomeguy That very was helpful and very simple Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.