SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you add/remove a section to a site that has 1000+ pages?

    I was wondering if a site is enormous and a new section needs to be added or removed from all the pages how is it done exactly?

    What kinds of steps does one have to take while preparing to setup a website like this?

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,834
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Are they all static pages or are you using a server side scripting language of some sort that uses includes for the common parts of the page?

    If the pages are static then I suggest converting to using some sort of includes so that you don't need to update all the pages again next time.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Member
    Join Date
    Dec 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup they are using server side includes.

  4. #4
    SitePoint Mentor bronze trophy
    John_Betong's Avatar
    Join Date
    Aug 2005
    Location
    City of Angels
    Posts
    1,840
    Mentioned
    73 Post(s)
    Tagged
    6 Thread(s)
    Instead of every/all pages - if you want to be selective then try this:

    Code:
    if( 'target.php' ===  $_SERVER['REQUEST_URI'] ) 
    {
       include 'includePath/newSection.php';
    }
    Learn how to be ready for The New Move to Discourse

    How to make Make Money Now with a *NEW* look

    Be sure to congratulate Patche on earning Member of the Month for July 2014

  5. #5
    Non-Member
    Join Date
    Mar 2014
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use alternative page links or try to redirect the page. Or otherwise place the access denied code for those site pages.


Bookmarks

Posting Permissions

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