Skip to content
Deploying apps4 min read

Netlify or regular hosting for your site

Short answer

Netlify suits static sites and front-end apps deployed from Git, with a preview for every change, Netlify Forms and serverless functions, and its free plan runs on a limited monthly credit allowance. Regular hosting fits better if you want PHP, WordPress, a MySQL database, email on your domain or always-on processes. To move, turn _redirects rules into .htaccess and replace Netlify Forms and Functions with code that runs on the hosting.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What Netlify does well
  2. What regular hosting does well
  3. Decision table
  4. How to move a site from Netlify to cPanel hosting
  5. On ArabyHost

Many people start on Netlify because it makes publishing an HTML or React site very easy. Then the project needs email, a PHP admin panel or a database, and the question comes up: stay or move? This page is for that decision and for the move. The attribute-by-attribute comparison and prices are on ArabyHost vs Netlify.

What Netlify does well

  • Deploys from Git: connect the repository and the site builds and publishes on every push, and every pull request gets a Deploy Preview with its own URL.
  • Static sites and front ends: HTML, React, Vue, Astro and Next.js, served from a distribution network.
  • Netlify Forms: an HTML form with one attribute is received by Netlify without writing a server.
  • Functions and Edge Functions: small server code that runs on demand. Its docs also describe a long-lived server product called Netlify Server for backends that keep connections open.
  • Credits: according to its docs, each production deploy uses 15 credits and each 1 GB of web bandwidth 20 credits, while deploy previews and failed deploys aren’t metered. The Free plan has 300 credits a month with a hard limit.

What regular hosting does well

  • PHP, WordPress and MySQL in the same account, with no separate services.
  • Email on your domain with SPF and DKIM.
  • A cPanel panel for files, databases and backups.
  • A fixed bill that doesn’t change with the number of deploys or the traffic.
  • On developer plans: Node.js and Python and always-on processes with cron.

Decision table

Your situation Better fit
Personal site or static docs, deployed dozens of times a day, with a preview per change Netlify
A static company landing page that also needs domain email Hosting
A WordPress site or WooCommerce store Hosting
A React app with its own API and a MySQL database Hosting (AI/Developer plan)
A front end only, calling external services like Supabase, with a team relying on Deploy Previews Netlify
You need Docker Neither: a VPS or a container platform

How to move a site from Netlify to cPanel hosting

1. Build the site on your computer

Open netlify.toml if there is one: it holds the build command (command) and output folder (publish), such as npm run build and dist. Run the same command on your computer with the environment variables copied from the site settings on Netlify.

2. Upload the output

Zip the contents of the output folder. In cPanel open Files › File Manager, go into public_html, click Upload, then Extract. Details in upload an HTML site and deploy a React app.

3. Turn _redirects into .htaccess

In _redirects In .htaccess
/old /new 301 Redirect 301 /old /new
/* /index.html 200 The index.html fallback (below)
/api/* https://api.example.com/:splat 200 Better: have the front end call the API URL directly

The fallback rule for single-page apps:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]

Without it, inner pages return 404 on refresh, as in SPA 404 on refresh. More on the file in what .htaccess is, and the .htaccess redirect generator writes redirect rules quickly.

4. Replace Netlify Forms

Look in the HTML for data-netlify="true" or netlify on a form tag. Point the form’s action to a small PHP file on the hosting that receives the fields and emails them, or saves them to MySQL. PHP runs on every plan.

5. Replace Netlify Functions

If there’s a netlify/functions/ folder, each file is an API endpoint. Combine them into one Express app listening on process.env.PORT, and run it with Setup Node.js App on a subdomain such as api.example.com, as in deploy a Node.js API. That needs an AI/Developer plan, since ArabyHost has no serverless functions.

6. Move the domain

Point the domain to ns1.arabicode.com and ns2.arabicode.com or update the DNS records. SSL is issued automatically once it points to us. Keep the site on Netlify until DNS has propagated.

On ArabyHost

Static sites moved from Netlify run on every plan, served by LiteSpeed with free automatic SSL and daily backups, and you can deploy from GitHub with Git Version Control and .cpanel.yml. An API that lived in Functions runs on the AI/Developer plans with Node.js or Python. There are no automatic previews per pull request, no global CDN and no serverless functions. Prices in your currency are on the pricing page.

FAQ

Is Netlify free?

Netlify has a Free plan with a limited monthly credit allowance. According to its docs the limit is hard with no recharge, and unused credits don't roll over. Every production deploy uses credits. Details are on the ArabyHost vs Netlify comparison.

How do I put my site on Netlify?

Connect a GitHub repository and Netlify builds and publishes on every change, or upload a ready site folder from its dashboard. This page focuses on when to choose Netlify or hosting, and how to move between them.

Does PHP or WordPress run on Netlify?

Netlify doesn't run PHP on the server; server code there runs as Functions in languages such as TypeScript and JavaScript. A WordPress or PHP site needs hosting with PHP and MySQL.

What happens to Netlify Forms if I move the site?

They stop, because Netlify is what receives the form submission. On hosting you replace them with a small PHP file that receives the data and emails it or saves it to MySQL.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.