# Google Ads Recovery Changes

**Project:** mightyhealth.in  
**Date:** 22 September 2026  
**Purpose:** Record the code changes made while preparing the site for a Google Ads re-appeal.

## Executive Summary

The public website was updated to address destination reliability, unsupported-language, hospital-affiliation, pricing, consultation, mobile-rendering, and canonical-URL concerns.

The repository changes make public output deterministic and improve the accuracy of user-facing claims. Server, hosting, Search Console, Safe Browsing, password, and 2FA tasks require production access and are listed separately below.

## Implemented Changes

### 1. Mobile homepage hero

**Files:**

- `resources/views/web/index.blade.php`
- `resources/views/web/includes/header.blade.php`
- `resources/views/web/includes/footer.blade.php`

**Changes:**

- Added a dedicated static mobile hero using the configured mobile banner image.
- Hid the Revolution Slider below 768px using the `desktop-home-slider` class.
- Kept the existing Revolution Slider for desktop visitors.
- Added mobile-specific title, subtitle, CTA, sizing, and overlay styling.
- Removed mobile user-agent branches that caused different server-rendered page structures.

**Reason:** The mobile Revolution Slider was rendering several animated caption layers together, causing text overlap and an unusable hero. The static mobile hero provides one stable image, one message, and one CTA.

### 2. Broken destinations and CTA links

**Files:**

- `resources/views/web/index.blade.php`
- `resources/views/web/contact_us.blade.php`
- `resources/views/web/includes/footer.blade.php`

**Changes:**

- Connected `Schedule Video Chat` to the consultation route.
- Connected `Try Video Consultation` to the consultation route.
- Fixed `Book Appoitment` to `Book Appointment`.
- Connected `Book Appointment` to the `get-a-quote` route.

**Reason:** Empty `#` links and the appointment typo created incomplete user journeys and could contribute to destination-quality concerns.

### 3. Consultation disclosure

**File:** `resources/views/web/consult-online.blade.php`

Added wording clarifying that:

- Consultations are with doctors from the selected hospital.
- Mighty Health arranges the appointment.
- Mighty Health does not provide medical advice.
- The hospital is responsible for diagnosis, treatment, and final costs.

**Reason:** This prevents the site from implying that Mighty Health itself provides medical advice or treatment.

### 4. Independent facilitator and hospital disclosure

**Files:**

- `resources/views/web/hospital_details.blade.php`
- `resources/views/web/includes/footer.blade.php`

**Changes:**

- Added a disclosure to dynamic hospital detail pages:

  > Mighty Health is an independent medical facilitator. We are not owned by or part of [Hospital]. All treatment is given by the hospital. Our service is free to patients because hospitals pay us a facilitation fee.

- Replaced the previous broad footer claim that all hospitals had signed MOUs.
- Clarified that Mighty Health is not owned by or part of any hospital.

**Reason:** The wording addresses affiliation and independent-facilitator requirements without making an unsupported partnership claim.

### 5. Indicative treatment pricing

**File:** `resources/views/web/treatment_details.blade.php`

**Changes:**

- Renamed minimum and maximum costs as indicative costs.
- Changed `Start from` wording to indicate an indicative price.
- Added that the final cost is set by the hospital.

**Reason:** Treatment prices must not appear to be guaranteed final quotes.

### 6. English-only public output

**Files:**

- `app/Http/Controllers/web/HomeController.php`
- `resources/views/web/includes/footer.blade.php`

**Changes:**

- Removed IP-based language detection from the shared controller constructor.
- Removed Google Translate initialization and translation-cookie logic.
- Removed automatic language variation based on visitor country or region.

**Reason:** Visitors from India and Bangladesh should receive the same English page. This also avoids crawler/user content differences caused by automatic translation.

### 7. Unapproved hospital landing routes withdrawn

**File:** `routes/landing.php`

Removed public landing routes for:

- Fortis
- Max Hospital
- Apollo
- Medanta

**Reason:** The brief requires these names and logos to remain on hold until signed agreements and written naming approvals are confirmed.

### 8. Correct 404 status for withdrawn URLs

**File:** `app/Http/Controllers/web/HomeController.php`

The catch-all page now returns a real HTTP 404 response instead of rendering a 404 page with HTTP 200.

**Reason:** Withdrawn or unknown URLs should not appear technically successful to crawlers.

### 9. Fixed non-www canonical URLs

**Files:**

- `config/app.php`
- `.env.example`
- `resources/views/web/includes/header.blade.php`

**Changes:**

- Added `APP_CANONICAL_URL` configuration.
- Set the default canonical base to `https://mightyhealth.in`.
- Replaced `url()->current()`, which reflected the incoming host, with a fixed canonical base plus the current path.
- Removed the stale `eyelz` fallback from the application URL configuration.

**Expected behavior:**

Both of these URLs emit the same canonical URL:

```text
https://mightyhealth.in/page
https://www.mightyhealth.in/page
```

Canonical output:

```text
https://mightyhealth.in/page
```

Production `.env` should contain:

```env
APP_URL=https://mightyhealth.in
APP_CANONICAL_URL=https://mightyhealth.in
```

After updating production environment variables:

```bash
php artisan config:cache
```

## 2FA Status

A TOTP authenticator-based admin 2FA flow was briefly implemented and tested, but it was reverted at the owner's request.

The final repository state contains:

- No 2FA routes.
- No 2FA controller flow.
- No 2FA views.
- No `two_factor_secret` model field.
- No 2FA migration file.
- No `admins.two_factor_secret` database column.

## Security Review Performed

A repository search checked application, route, configuration, resource, and public PHP/JavaScript paths for common suspicious patterns, including:

- Hidden iframes.
- `eval`.
- `base64_decode`.
- `gzinflate`.
- `shell_exec`.
- `passthru`.
- `assert`.
- Obfuscated `fromCharCode` usage.

No matching suspicious patterns were found in the reviewed paths.

This repository review is not a replacement for a production server malware scan.

## Validation Completed

The following checks passed during implementation:

```bash
php -l app/Http/Controllers/web/HomeController.php
php -l app/Http/Controllers/app/auth/LoginController.php
php -l config/app.php
php artisan view:cache
php artisan route:list --path=lp
php artisan migrate --pretend
php artisan config:clear
```

Additional checks confirmed:

- Fortis, Max, Apollo, and Medanta landing routes are absent.
- 2FA routes and references are absent after rollback.
- The canonical configuration resolves to `https://mightyhealth.in`.
- Blade templates compile successfully.
- `git diff --check` reports no whitespace errors.

The PHPUnit command could not complete because the repository does not contain the expected `tests/Unit` directory.

## Production Tasks Still Required

These tasks cannot be verified from repository code alone:

1. Run a full malware scan on deployed files, database content, uploads, and server processes.
2. Review unknown files, hidden admin users, FTP users, SSH users, cron jobs, and database users.
3. Change hosting, FTP, database, CMS, and admin passwords.
4. Enable 2FA at the hosting, CMS, and relevant administrator-account level.
5. Update CMS, plugins, PHP, web server, operating system, and other server software.
6. Confirm Googlebot and AdsBot-Google receive HTTP 200 on every advertised landing page.
7. Check for mobile-only, Google-referrer, geo-based, or crawler-only redirects/content.
8. Verify Search Console Security Issues and Manual Actions are clear.
9. Check Google Safe Browsing status.
10. Search Google for `site:mightyhealth.in` and document unrecognized indexed URLs.
11. Remove or de-index pages that were not created or approved by the owner.
12. Confirm legal name, registered address, GST, CIN, working phone, and working email in the footer and schema.
13. Remove Dubai references from production database content, schema markup, blog content, and public pages where required.
14. Confirm written agreements and naming approvals before restoring held hospital content.
15. Decide whether the stem-cell therapy article should remain published.
16. Capture before-and-after screenshots for each changed public page.
17. Keep the malware report, changed-file list, Search Console screenshots, and screenshot evidence with the re-appeal.

## Changed Files

The main implementation files are:

```text
app/Http/Controllers/web/HomeController.php
config/app.php
.env.example
resources/views/web/consult-online.blade.php
resources/views/web/hospital_details.blade.php
resources/views/web/includes/footer.blade.php
resources/views/web/includes/header.blade.php
resources/views/web/index.blade.php
resources/views/web/treatment_details.blade.php
routes/landing.php
```

The working tree may also contain pre-existing or unrelated local changes. Review `git status --short` before preparing the final commit or PR.
