
Technical SEO is the foundation of a business website's visibility in search results. Without reliable crawling, correct indexing, acceptable loading speed and HTTPS, even very good content risks staying invisible on Google. Organic search relies on both technical optimisation and targeted content: neglecting either one means building on unstable foundations.
For Moroccan small and medium-sized businesses, in Fes, Casablanca, Rabat or elsewhere, a Google search is often one of the first points of contact with prospects and local customers. Technical SEO does not guarantee any ranking, but it removes the obstacles that stop your pages from being discovered, understood and shown.
Unziptech (STE UNZIPTECH SARL, based in Fes) builds showcase websites, e-commerce sites and web applications optimised for search. This guide covers the fundamentals of technical SEO, then a prioritised checklist and an FAQ.
How search engines crawl and index a website
Technical SEO makes websites easier to crawl and index. Before a page appears in Google or Bing results, three steps take place:
- Crawling: Googlebot follows internal and external links to discover the pages on your site. It reads the HTML, CSS and JavaScript to understand how the page renders. If resources are blocked, rendering can be incomplete.
- Indexing: Google decides whether to store each page in its index. Server errors (5xx), a misplaced noindex tag or content that does not render can prevent indexing.
- Ranking: once indexed, the page is ranked on many criteria, including content relevance, quality of experience and authority signals.
Google uses mobile-first indexing: the mobile version of your site is the main reference. Mobile compatibility is therefore a starting point, not an option.
Internal linking helps distribute authority across a site's pages. Clear internal links between your pillar pages and secondary pages avoid orphan pages (pages no internal link points to) and guide both crawlers and users.

Laying the foundations: site architecture, structure and URLs
Your website's architecture is the first technical element search engines and visitors encounter. A logical structure and readable URLs make crawling, understanding and navigation easier.
Good practice for structuring a business website:
- Structure by topic: organise pages by business priority (services, solutions, sectors), with a blog or FAQ to answer long-tail queries, which are often more specific and better qualified.
- Descriptive URLs: short, lowercase, with words separated by hyphens, for example /services/web-development/ rather than /page?id=1234&cat=4.
- Limited click depth: keep important pages reachable in a few clicks from the home page so crawlers and visitors can find them easily.
- Breadcrumbs: on large sites (e-commerce, catalogues, platforms), breadcrumbs improve navigation and give search engines context about the structure.
Before you start your project, a website requirements document helps you define this structure up front.
The robots.txt file: control crawling without blocking SEO
The robots.txt file is a text file at the root of your domain. It tells crawlers which parts of the site may be crawled. Note that it does not guarantee a page stays out of the index if other pages mention it. To prevent indexing, use a noindex tag on a page that remains crawlable.
Points to check in a robots.txt file:
- Block areas with no search value: basket, admin, internal search, test directories.
- Do not block CSS and JavaScript: Googlebot needs them to analyse how pages display.
- Point to the sitemap: add a line such as Sitemap: https://www.yoursite.com/sitemap.xml.
- Check at every release: a forgotten Disallow: / after a staging phase can block crawling of the entire site.
XML sitemaps: help Google discover all important pages
An XML sitemap lists the URLs you want crawled: service pages, product pages, blog posts, categories.
Practical guidelines:
- Respect the limits: a sitemap file is limited to 50,000 URLs and 50 MB uncompressed; beyond that, split it and use a sitemap index. For a multilingual site, you can split files by language to spot errors faster.
- Submit it in Google Search Console to track indexed pages, errors and exclusions.
- Update automatically: every published or deleted page should be reflected in the sitemap.
- Exclude non-indexable pages: do not include noindex URLs, redirects or error pages.
Meta tags and HTML structure (title, H1, H2, meta description)
Heading tags structure content for search engines and for quick reading by users.
- Title tag: the title usually shown in search results. Include the main keyword naturally, without keyword stuffing.
- H1: one visible main heading, unique on the page.
- H2/H3: a clear hierarchy (need, solution, details, FAQ) helps Google identify sections and improves readability.
- Meta description: a unique description for each important page, summarising the benefit for the searcher. It is not a direct ranking factor, but it can influence click-through rate.
- Images: descriptive alt text helps image understanding and accessibility.
The content of each page should precisely match searchers' intent.
Canonical tags, duplicate content and URL versions
The link rel="canonical" tag tells Google which URL is the reference version when the same content is available at several addresses.
Common cases:
- Filters and sorting: an e-commerce catalogue or booking platform can generate many URLs for the same content depending on the filters applied.
- Tracking parameters: UTM parameters from your campaigns create URL variants.
- http/https and www/non-www versions: one version should be the reference and the others should redirect to it.
Also avoid copying the same text between similar service pages: each page should answer a distinct intent. A crawler (Screaming Frog, for example) helps find internal duplication, redirect chains and incorrect canonicals.
Hreflang and multilingual SEO for FR / EN / AR sites
Moroccan businesses that publish their site in French, English and Arabic need to tell Google which version to show depending on the searcher's language and region. That is the role of hreflang tags.
Example: link rel="alternate" hreflang="fr-MA" href="https://yoursite.com/fr/service/", with an ISO 639-1 language code and, if needed, an ISO 3166-1 alpha-2 region code (fr-MA, ar-MA, en). Add an x-default version for searchers whose language matches none of the versions.
Good practice:
- Keep a consistent URL structure across languages: /fr/service/, /en/service/, /ar/service/.
- Each version should reference all other versions, including itself (reciprocal links).
- After each deployment, check that the tags are present and reciprocal.
- For local SEO, keep business information (address, phone, opening hours) consistent across languages and online listings.
To go further, read our guide to the multilingual website.

Performance, loading speed and Core Web Vitals
Core Web Vitals are Google metrics that measure a page's loading experience, responsiveness and visual stability:
| Metric | What it measures | "Good" threshold published by Google |
|---|---|---|
| LCP (Largest Contentful Paint) | Time to display the main element | ≤ 2.5 seconds |
| INP (Interaction to Next Paint) | Responsiveness to interactions | ≤ 200 ms |
| CLS (Cumulative Layout Shift) | Visual stability of the page | ≤ 0.1 |
Google assesses these thresholds at the 75th percentile of real visits. Levers to prioritise on your main pages (home, services, conversion pages):
- compressing and resizing images, using modern formats (WebP, AVIF);
- minifying CSS and JavaScript and removing unused code;
- browser caching and a CDN;
- lazy-loading off-screen images;
- fast hosting with a controlled server response time.
Test regularly with PageSpeed Insights and the Core Web Vitals report in Search Console. A fast site also improves the experience of visitors filling in a contact or booking form.
HTTPS, security and trust signals
Google announced in 2014 that HTTPS is used as a ranking signal, and browsers flag HTTP pages as "not secure". Every business website, including a simple showcase site, should run on HTTPS to protect data entered in forms.
Good practice:
- 301 redirects from every HTTP URL to its HTTPS equivalent;
- updating internal links, sitemaps and canonical tags to the HTTPS version;
- regular updates of the CMS, dependencies and plugins;
- backups and periodic security checks.
Complete legal notices and a clear privacy policy also reinforce visitors' trust.
JavaScript, client-side rendering and indexing dynamic pages
Many modern sites use JavaScript for filters, dynamic forms or single-page applications (SPAs). Google can run JavaScript, but rendering may happen at a later stage, which can delay how quickly client-side content is taken into account.
For important pages:
- prefer server-side rendering (SSR) or static generation, so the initial HTML contains the main content;
- do not block JS and CSS files in robots.txt;
- use the URL Inspection tool in Google Search Console to check what Google actually sees;
- make sure important links are real HTML links (a tags with href).
Structured data (Schema.org): enrich your search results
Structured data helps search engines understand a page and can make it eligible for rich results. Google recommends the JSON-LD format.
| Schema.org type | Use | Data included |
|---|---|---|
| LocalBusiness | Business with a physical address | Address, opening hours, phone |
| Organization | Company, association | Logo, social profiles, description |
| Product / Offer | Product or service sold online | Price, availability |
| Article / BlogPosting | Blog post | Author, date, title |
| BreadcrumbList | Breadcrumbs | Page hierarchy |
Validate your markup with Google's Rich Results Test before each release. Structured data must accurately describe the visible content of the page, and it does not guarantee a rich result.

Monitoring with Search Console and long-term SEO maintenance
Technical SEO is not a one-off task delivered at launch: it is ongoing monitoring. Google Search Console helps you track performance and the technical health of the site. Reports to check regularly:
- Page indexing: indexed, excluded and error pages (404, 5xx).
- Core Web Vitals: LCP, INP and CLS on real-user data, mobile and desktop.
- Sitemaps: submitted URLs and read errors.
- Security and manual actions: detected security issues or manual actions by Google.
Update outdated content and document every major technical change (redesign, migration, new theme) to connect traffic changes to site changes. An IT audit can include this technical check in a wider review of your systems.
Prioritised checklist: where to start with technical SEO
Avoid any deceptive practice (cloaking, artificial links, hidden content): it exposes your site to manual actions from Google.
Level 1 – Urgent
- Serve the site over HTTPS with 301 redirects
- Fix server errors and 404s on important pages
- Check that robots.txt blocks no key page
- Submit the XML sitemap in Search Console
- Check that service and product pages are indexable and mobile-friendly
Level 2 – Important
- Improve the loading speed of main pages
- Use descriptive URLs and unique title tags and H1s
- Fix orphan pages through internal linking
- If you have physical premises, keep your Google business profile up to date
Level 3 – Growth
- Add canonical tags on pages at risk of duplication
- Configure hreflang for the FR / EN / AR versions
- Add basic structured data (Organization, LocalBusiness, BreadcrumbList)
Level 4 – Advanced
- Optimise JavaScript rendering (SSR or static generation) for critical pages
- Improve Core Web Vitals beyond the minimum thresholds
- Schedule regular technical audits and performance monitoring

FAQ: common questions about technical SEO
How long does it take to see the effect of a technical fix?
It depends on the fix, the size of the site and how often Google crawls it. Pages must first be crawled again, then reindexed. Be wary of any promise of fast or guaranteed results.
Should I work on content or technical SEO first?
The two go together. Useful content answers searchers' queries, but without a sound technical base (crawling, indexing, HTTPS, speed) it may not be discovered. Lay the technical foundations before or alongside content production.
Can I leave technical SEO entirely to my developer?
A developer masters code, performance and the server; SEO also requires understanding search intent, content structure and monitoring tools. The ideal is collaboration between development and SEO, or a provider who combines both skills.
What should I watch during a redesign to avoid losing rankings?
Plan 301 redirects from each old URL to its new equivalent, keep existing URLs where possible, update the sitemap, canonicals and internal links, then monitor errors in Search Console after launch. Our website redesign guide explains the process.
Does structured data guarantee rich results?
No. Compliant markup makes a page eligible, but Google decides whether to show a rich result.
What is the role of backlinks compared with technical SEO?
Technical SEO makes your site crawlable and indexable; links from other sites contribute to its authority. The two are complementary: a technically clean site also needs useful content and external recognition.
If you do not have an in-house technical team, explore Unziptech's services or contact us to discuss your site's technical health.
