Website folder structure help

Discussion in 'HTML & Website Design' started by DNBro, Jul 11, 2010.

  1. #1
    Currently I dump all files on a single folder, now looking forward to add folders and subfolders.
    Question is how to fix the path of CSS, header images and other common files. Do I need to copy those files into each folder and sub folders or change the path on each page.

    Also how I can hide directory files accessed by others, there is any way someone tries to access directory then it will direct to main page of the directory.

    Thanks and reply appreciated.
     
    DNBro, Jul 11, 2010 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Yes, if you want to shift your files in folders/ sub folders then you'll have to update the path in all instances in your html pages.
    sorry, not sure, Not able to understand. However I believe one can edit.htaccess file to edit the accessibility of the pages.
     
    radiant_luv, Jul 11, 2010 IP
  3. DNBro

    DNBro Well-Known Member

    Messages:
    663
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    thanks for the support,

    Anther question is about folder structure, currently i renamed main page in the each folder as index.php. now i want to move from pages under folder to main category page(index) of this folder.

    like

    example.com
    example.com/index.php
    example.com/folder
    example.com/folder/index.php
    example.com/folder/file1.php
    example.com/folder/file2.php

    in my current setting after clicking from example.com/folder/file1.php to move back main category page example.com/folder/index.php then link taking back to home page example.com/index.php.

    how i can link to main category page from pages under category instead of taking to homepage.

    thanks
     
    DNBro, Jul 13, 2010 IP