Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts

    Directory problem

    So I moved a page on my website called settings.php to folder in a directory called edit so the directory would look like this main/edit/settings.php, so on that page I have a includes like overall header which includes the main CSS files and the menu which has button that links to the index page, when I click it it dosent take me to a main/index.php it takes me to main/edit/index.php. I dont know why. Also the CSS dosent work. The css files are link like css/login.css. Any help Is appreciated

  • #2
    Senior Coder
    Join Date
    Apr 2011
    London, England
    Thanked 354 Times in 353 Posts
    I may have this slightly wrong as it catches me out occasionally:

    Paths quoted in an included file need to be relative to the file that includes this file;
    CSS files that include paths specify these paths relative to where the the CSS file itself is stored.

    Personally, I just try


    to go up a level; and, if this doesn't work,


    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts