Valiant Life Care › General Content
2026-06-28 Valiant Life Care General Content
QUICK FIX COMMANDS - Use these to resolve the link issues ================================================================================
QUICK FIX COMMANDS - Use these to resolve the link issues ================================================================================
IMPORTANT: Back up your files before running these commands!
FIX #1: PRIVACY POLICY LINKS (41 files, 41 occurrences)
Run this single command to fix all Privacy Policy links at once
cd /sessions/cool-ecstatic-archimedes/mnt/Valiant-Lifecare_php-export_2026-04-06_21-20-18 find . -name "*.php" -type f -exec sed -i's| Privacy Policy | Privacy Policy |g' {} \;
Verification - should show 0 results after fix
grep -r ' Privacy Policy' .
FIX #2: BLOG CATEGORY LINKS (82 occurrences)
Option A: Replace ALL category links with blog.php
cd /sessions/cool-ecstatic-archimedes/mnt/Valiant-Lifecare_php-export_2026-04-06_21-20-18 find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/category/blog/"|href="blog.php"|g' {} \; find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/category/expert-advice/"|href="blog.php"|g' {} \; find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/category/industry-insights/"|href="blog.php"|g' {} \;
Verification
grep -rc'valiantlifecare.com/category/' .
FIX #3: ABOUT DROPDOWN LINKS (2 occurrences)
Fix the navigation About link in header-home.php
cd /sessions/cool-ecstatic-archimedes/mnt/Valiant-Lifecare_php-export_2026-04-06_21-20-18 sed -i'69s| About| About|' includes/header-home.php
Fix the navigation About link in header-inner.php
sed -i'102s| About| About|' includes/header-inner.php
Verification
grep'href="about.php">About'includes/header-*.php
================================================================================ FIX #4: WORDPRESS PAGE_ID REFERENCES (5 occurrences) - REQUIRES INVESTIGATION ================================================================================
Step 1: Determine what these pages should map to
- See PAGE_ID_MAPPING_GUIDE.txt for investigation instructions - Best guess for page_id=254: for-health-plans.php - For page_id=273 and 266: requires investigation
Step 2: Once you know the mapping, use these commands
For page_id=254 -> for-health-plans.php
find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/?page_id=254"|href="for-health-plans.php"|g' {} \;
For page_id=273 (replace DESTINATION with correct file)
find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/?page_id=273"|href="DESTINATION.php"|g' {} \;
For page_id=266 (replace DESTINATION with correct file)
find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/?page_id=266"|href="DESTINATION.php"|g' {} \;
Verification
grep -rc'page_id=' .
OPTIONAL: CERTIFICATION LINKS (4 occurrences)
These are currently working with target="_blank" (external links). Only change if you want to make them local.
To replace with local page (if you create one)
find . -name "*.php" -type f -exec sed -i's|href=" https://valiantlifecare.com/cpc-ccs-certification-training/"|href="certifications.php"|g' {} \;
Verification
grep -rc'certification-training' .
FULL VERIFICATION SCRIPT (Run after all fixes)
#!/bin/bash echo "=== Broken Links Verification ===" echo "Privacy Policy href='#':" grep -rc ' Privacy Policy' . echo "" echo "Category links remaining:" grep -rc'valiantlifecare.com/category/' . echo "" echo "Page ID references remaining:" grep -rc'page_id=' . echo "" echo "About dropdown still broken:" grep -rc ' About'includes/ echo "" echo "All results above should be 0"
RECOMMENDED ORDER OF FIXES
Run Fix #1 (Privacy Policy) - 41 files, easiest
Run Fix #2 (Category links) - 82 occurrences, easy
Run Fix #3 (About dropdown) - 2 files, quick
Investigate page_id mapping using PAGE_ID_MAPPING_GUIDE.txt
Run Fix #4 (page_id references) - once mapping determined
Run verification script to confirm all fixed
Test site locally to ensure all links work
ROLLBACK (if something goes wrong)
If you need to undo a change, restore from backup and re-run specific fix
# Example: revert and redo Privacy Policy fix git checkout -- . (if using git) # OR manually restore from backup # Then re-run the specific fix command
SUPPORT FILES
For detailed information about each issue
- LINK_AUDIT_REPORT.txt - Complete findings for all 7 issue categories - PAGE_ID_MAPPING_GUIDE.txt - How to determine page_id mappings - This file - Quick commands to fix issues
Converted from QUICK_FIX_COMMANDS.txt , /Volumes/KD_PERSONAL/valiantlifecare.com/Valiant-Lifecare_stable