
HomeHardware — reorganized for XAMPP (single htdocs)

New project root suggestion (on your machine):
  H:\xampp\htdocs\HomeHardware\

KEY CHANGES
- Removed nested 'htdocs' in the path.
- Dynamic base URL; no more hardcoded '/HomeHardware_PWA/HomeHardware/htdocs'.
- SQLite DB moved to storage/database/sponsor_content.db (outside web root assets).
- Minimal .htaccess rewrite with no hardcoded RewriteBase.
- Created storage/uploads and storage/tmp for writeable content.

APACHE VIRTUALHOST (recommended):
  1) Edit H:\xampp\apache\conf\extra\httpd-vhosts.conf and add:

     <VirtualHost *:80>
       ServerName homehardware.local
       DocumentRoot "H:/xampp/htdocs/HomeHardware/public"
       <Directory "H:/xampp/htdocs/HomeHardware/public">
         AllowOverride All
         Require all granted
       </Directory>
     </VirtualHost>

  2) Add to C:\Windows\System32\drivers\etc\hosts:
     127.0.0.1   homehardware.local

  3) Restart Apache in XAMPP. Visit http://homehardware.local/

ALTERNATIVE (without VirtualHost):
  Keep default http://localhost/HomeHardware/ mapping by placing this folder at:
    H:\xampp\htdocs\HomeHardware\
  The included .htaccess will still route clean URLs.

WINDOWS PERMISSIONS (PHP write issues):
  Ensure the following folders are writeable by your Windows user:
    - storage\database
    - storage\uploads
    - storage\tmp
  Right‑click folder → Properties → Security → Edit → allow 'Modify' for 'Users'.

If you previously uploaded files or relied on the old DB location, verify:
  - The SQLite file was moved to storage/database/sponsor_content.db
  - Any code that used absolute paths has been updated (Config.php, config.php, index.php).

