Hmm. Need help on designing a header (or even footer and navigator php files) that has a link that's not an absolute. A little explanation I guess should help.
Here's my scenario. I got a header.php to be included at index.php (home page) and also included at index.php (at catalog directory under /). So something like this
Header has a link for products that is <a href="catalog/">PRODUCTS</a>, so by the time the user clicks at PRODUCTS in index.php (home) it goes to catalog/index.php where includes a header with an <a href="catalog/">PRODUCTS</a>, so clicking the products there would give me a Not Found having a link like http://localhost/pcx/catalog/catalog/ where pcx is a project folder inside my localhost.Code:/ + index.php (Includes header.php) + header.php + catalog/ (Directory catalog) + index.php (Includes header.php)
Hope to have my questions clear. Thanks in advance.




Reply With Quote