Land Coordinates Technology (lctss.in) - PHP version
====================================================

Same design and content as the HTML version, now as a PHP site with
shared includes and clean URLs.

WHAT CHANGED
- Every page is now index.php (421 pages -> 421 .php files, plus includes).
- The header, menu, top bar and footer live in ONE place:
    includes/bootstrap.php  - phone numbers, emails, address, social links,
                              main menu and footer links (edit these here)
    includes/header.php     - <head>, top bar, header and menu
    includes/footer.php     - footer, call button, scripts
  Change a phone number or menu item once and it updates on every page.
  The current page is highlighted in the menu automatically.
  The footer year updates itself.
- Clean URLs everywhere. No more "index.html" or "../../" in links:
    before: ../../our-services/gis-mapping/index.html
    after:  /our-services/gis-mapping/
  Blog posts keep their dated addresses (/2023/05/18/land-surveyors-in-chennai/),
  which match the old WordPress URLs, so Google rankings and old links still work.
- .htaccess:
    /about-us            -> 301 to /about-us/
    /about-us/index.php  -> 301 to /about-us/  (same for index.html)
    unknown pages        -> branded 404 page (proper 404 status, noindex)
    /includes/           -> blocked
    plus browser caching and gzip for faster loading.
- sitemap.xml (420 URLs) and robots.txt added - submit the sitemap in
  Google Search Console.
- Forms still open the visitor's email app, addressed to lctsurveyins@gmail.com.

EDITING A PAGE
Open the page's index.php. The top block sets the title and description:
    $page = [
        'path'        => '/about-us/',
        'title'       => 'About us | ...',
        'description' => '...',
    ];
Below that is the page content as normal HTML.

PUBLISH
1. Upload everything inside this folder to public_html (Apache / cPanel
   hosting with PHP 7.4 or newer). Include the hidden .htaccess files.
2. Once SSL is active, open .htaccess and uncomment the "Force https://www."
   lines.
3. Delete any old index.html files left in public_html from the HTML version,
   so they don't get served instead of index.php.

IMAGES
This zip does not include wp-content/uploads (the images), to keep it small.
Copy the wp-content/uploads folder from your HTML version (lctss-new-site)
into this folder's wp-content folder before uploading.
Some images from 2025-2026 blog posts are not in this folder. If any are
missing, put this folder next to your WordPress backup and run
copy-images.bat (see the paths inside it), or copy wp-content/uploads from
the backup.

PREVIEW ON YOUR COMPUTER (optional, needs PHP installed)
    php -S localhost:8000 router.php
then open http://localhost:8000/   (router.php is only for this; the live
server uses .htaccess.)
