Copy this into your AI coding tool
Works in Cursor, Claude Code, Codex, Windsurf and similar tools. Built in ChatGPT, Claude, Lovable, Bolt or v0 instead? Get the prompt for your tool.
The upload prompt
Publish this website to my HostDingo hosting.
1. Build the site for production as static files (for example npm install, then npm run build) and find the output folder: dist, build or out. For Next.js, set output: 'export' and images: { unoptimized: true } in next.config first. If the project is plain HTML, use it as it is.
2. If it's a single-page app (React, Vue, Svelte), add an .htaccess file to the output folder so every route falls back to index.html.
3. Create a file called .env.hostdingo with these empty lines, and add it to .gitignore:
HOSTDINGO_FTP_HOST=
HOSTDINGO_FTP_USER=
HOSTDINGO_FTP_PASS=
HOSTDINGO_DOMAIN=
Then stop and ask me to fill it in myself from FTP Details in my control panel at cp.hostdingo.co.uk. Never ask me to paste the password into this chat, and never commit that file.
4. Upload everything inside the output folder to public_html over FTPS, reading the details from .env.hostdingo (lftp mirror works well).
5. Open my domain, check that the home page, a few links and the images load, and tell me if anything is broken.
6. Save the upload steps as a script called deploy-hostdingo, so next time I can just say "deploy".
The .htaccess file for single-page apps
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Got a website that needs its own server, like a Node.js API or Next.js server functions? Shared hosting runs static sites and PHP. For server apps, use a Cloud Server.