Skip Navigation

Text Only/ Printer-Friendly

Remove

Web Root Site Support

October 5, 2006 at 4:50 pm
By Matt Ryan

Site can now be placed at the root level of the server, e.g. at https://www.yoursite.com/. This is new -- at Carleton we hadn't needed this, so there were a lot of places that were assuming that a site would not be at the server root.

Main Changes

  1. The site content managernow accepts a single slash as the site's base url.
  2. The default minisiteNavigation class sports two new methods, which for most purposes deprecate the old get_nice_url($id). These new methods are much more useful and should meet almost all URL discovery needs:
    • get_url_from_base($id)
    • get_full_url($id, $as_uri, $secure)
  3. The URL History stuff has been modified to account for the possibility of the site being at the web root.

Affected Files

This is a freakin' long list.

  • lib/core/minisite_templates/nav_classes/default.php
  • lib/core/function_libraries/url_utils.php
  • lib/core/function_libraries/URL_History.php
  • lib/core/feeds/blog_posts.php
  • lib/core/feeds/page_tree.php
  • lib/core/feeds/news.php
  • lib/core/content_managers/event.php3
  • lib/core/content_managers/site.php3
  • lib/core/minisite_templates/nav_classes/flat_nav.php
  • lib/core/minisite_templates/modules/children_full_titles.php
  • lib/core/minisite_templates/modules/news_via_categories.php
  • lib/core/minisite_templates/modules/faculty.php
  • lib/core/minisite_templates/modules/generic3.php
  • lib/core/minisite_templates/modules/maintained.php
  • lib/core/minisite_templates/modules/news.php
  • lib/core/minisite_templates/modules/events_mini.php
  • lib/core/minisite_templates/modules/news_mini.php
  • lib/core/minisite_templates/modules/children.php
  • lib/core/minisite_templates/modules/giving_front_page_features.php
  • lib/core/minisite_templates/default.php
  • lib/local/minisite_templates/modules/jobs_all.php
  • lib/local/minisite_templates/modules/alumni_adventures_summary.php
  • lib/local/minisite_templates/modules/jobs_faculty_staff.php
  • lib/local/minisite_templates/modules/courses_with_related.php
  • lib/local/minisite_templates/modules/courses.php
  • lib/local/scripts/policies/policies_for_gateway.php
  • lib/core/content_previewers/default.php
  • lib/core/minisite/generate_page.php
  • lib/core/feeds/default.php
  • lib/core/feeds/sites.php
  • lib/core/scripts/db_minimize/minimize.php
  • lib/core/scripts/search/find_across_sites.php
  • lib/core/scripts/developer_tools/get_page_types.php
  • lib/core/scripts/import/import_photos.php
  • lib/core/classes/url_manager.php
  • lib/core/classes/admin/admin_module.php
  • lib/core/minisite_templates/tableless.php
  • lib/core/minisite_templates/tableless2.php
  • lib/core/minisite_templates/modules/news_top.php
  • lib/core/minisite_templates/modules/atoz.php
  • lib/core/minisite_templates/modules/sitemap.php
  • lib/core/minisite_templates/modules/search.php
  • lib/core/minisite_templates/modules/live_sites.php
  • lib/core/minisite_templates/modules/child_sites.php
  • lib/core/minisite_templates/modules/child_sites_top_pages.php
  • lib/local/minisite_templates/daf.php
  • lib/local/minisite_templates/library.php
  • lib/local/minisite_templates/art_gallery.php
  • lib/local/minisite_templates/alumni_gateway.php
  • lib/local/minisite_templates/modules/committees_all.php
  • lib/local/minisite_templates/giving.php
  • lib/core/classes/admin/admin_page.php √

Add a comment

Name:*
Comment:*
The following fields are not to be filled out. Skip to Submit Button.
Not Comment:
(This is here to trap robots. Don't put any text here.)
Not URL:
(This is here to trap robots. Don't put any text here.)
Avoid:
(This is here to trap robots. Don't put any text here.)