There is no special "Arabic server": any modern host can run an Arabic website. What separates a clean Arabic site from a broken one is five technical details: character encoding, right-to-left layout, URL format, Arabic domain names and font weight. Get them wrong and you see question marks instead of letters, mirrored layouts that half work, or links that turn into long strings of percent signs. This guide covers each one, split into what to check on the hosting side and what to set in your site.
1. Encoding: UTF-8 at every layer
In UTF-8 each Arabic letter takes two bytes, and it has to stay UTF-8 everywhere it travels: the site files, the database connection, the tables themselves and the page sent to the browser. One mismatched layer is enough to corrupt text.
- Pages and files: declare a utf-8 meta charset in every page head, and save theme and code files as UTF-8 without a BOM. A BOM at the start of a PHP file can print stray characters at the top of the page or trigger a "headers already sent" error.
- Database: use the utf8mb4 character set with a collation such as utf8mb4_unicode_ci. MySQL's older "utf8" stores at most three bytes per character; Arabic fits, but emoji in comments or usernames need four bytes and get cut off or rejected.
- Connection: in WordPress the DB_CHARSET constant in wp-config.php sets the connection encoding and should be utf8mb4. In hand-written applications, set the connection charset explicitly when you open it.
The symptoms tell you what went wrong. A row of question marks usually means the text was converted to a character set without Arabic, and the letters are gone unless you have a clean backup. Gibberish like "Ù…Ø±ØØ¨Ø§" means valid UTF-8 read with the wrong encoding, which is often repairable. Back up before any fix, and state utf8mb4 explicitly when you export and import a database during a migration.
2. Right-to-left layout
RTL is more than right-aligned text. The whole layout flips: menus, sidebars, arrows, breadcrumbs and form labels. Start by adding lang="ar" and dir="rtl" to the html element, then make sure the theme really supports the direction:
- When a WordPress site's language is set to Arabic, WordPress loads the theme's rtl.css if the theme provides one. A theme without it looks partly mirrored and partly broken, so test the post template, forms and product pages before committing to it.
- If you write your own CSS, use logical properties such as margin-inline-start instead of margin-left; they flip automatically with the page direction.
- Mirror icons that point somewhere, such as "next" and "previous" arrows, but not logos or photos.
- Check mixed-direction text: a phone number, product code or English name inside an Arabic sentence can render in the wrong order. Look at your key pages with your own eyes.
- Decide early whether numbers appear as Eastern Arabic digits (١٢٣) or Western digits (123), and use the same choice for prices and dates.
3. Arabic URLs: readable on screen, long when copied
URLs containing Arabic words work in browsers and search engines and show as Arabic in the address bar. Copy one into some apps, though, and it becomes percent-encoded: the four-letter word «مقال» turns into %D9%85%D9%82%D8%A7%D9%84, which is 24 characters. Which format suits you depends on where your links will be shared:
| Factor | Arabic slug | Latin slug |
|---|---|---|
| Clear to Arabic readers | Yes | Needs transliteration |
| Length when copied | Very long | Short |
| Shared in chat apps | May show encoded | Shows as typed |
| Same slug across languages | No | Possible |
Whichever you choose, decide before you publish and stick with it, because changing the URL format later means a 301 redirect for every old page. If you go with Arabic slugs, keep them to two or three words from the title rather than the full headline.
4. Arabic domain names (IDN)
A domain written in Arabic script is an internationalised domain name (IDN). DNS stores it in an ASCII form that starts with xn--, so the word «مثال» becomes xn--mgbh0fb. Some extensions accept Arabic-script names, and several countries have extensions written entirely in Arabic, but availability and rules are set by the registry behind each extension.
Typing an Arabic domain means switching keyboards, and some email systems and web forms still handle Arabic addresses imperfectly. A practical pattern is a Latin domain for email and transactions, plus an Arabic domain that redirects to it for campaigns. You can search for available names on the domain registration page, and our guide to choosing a domain name covers the naming itself.
5. Arabic web fonts without the slowdown
Arabic font files are usually heavier than Latin ones: each letter has several shapes depending on its position in a word, plus diacritics and ligatures. Loading four weights of an Arabic font can add hundreds of kilobytes to a first visit and delay text on phones.
- Use two weights at most, regular and bold, in WOFF2 format.
- Self-host the font files instead of pulling them from a third-party server, and preload the main one.
- Set font-display: swap so text appears immediately in a system font and switches when the web font arrives.
- If the font covers many scripts, serve a subset with Arabic and basic Latin only.
- Never apply letter-spacing to Arabic text; many browsers break the joins between letters. Give Arabic a slightly taller line height, because its letters extend above and below the line.
What to check on the hosting side
- A MySQL or MariaDB version with utf8mb4 support, which is standard on current releases.
- The ability to choose your PHP version and enable the mbstring extension (for multibyte text) and intl (for locale-aware dates and numbers).
- A database tool such as phpMyAdmin in cPanel, so you can inspect table encodings yourself.
- An SSL certificate, and support staff who understand an encoding or RTL problem described in Arabic.
According to the plan pages, EngHosting's shared hosting plans come with cPanel, PHP and MySQL support, WordPress support and a free SSL certificate, backed by Arabic technical support. If your site is an application that needs server-level configuration, a Linux VPS gives you full root access to tune every layer yourself.
The rest of the Arabic hosting series
- How to choose a host for visitors in several Arab countries.
- Technical setup for a site targeting multiple Arab countries: country versions, hreflang and CDN.
- What the smallest plan can hold for an Arabic blog or profile site.
- How to write a support request that gets solved faster.
- How to test a host's Arabic support before you buy.
Useful links: Shared Hosting, Linux VPS, Domain Registration, Contact Us.
Need the right hosting recommendation?
Tell EngHosting your website type and budget, and our team will help you choose the right Egyptian or Arabic hosting plan.
Contact on WhatsApp