---
schema_version: "1"
id: 2bfc3b6a600662cbfe2ffef1d96f479f87bdcdc7f56b69db7d03274db714c723
title: Site Namespace
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_namespace_Site.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Site.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 08e8926e698ccdf7e85e6633a7fe4b1b45551e05c96c08aa4cda7f100afa79f1
description: The Site namespace provides an interface for rewriting Sites URLs.
---
# Site Namespace

The Site namespace provides an interface for rewriting Sites URLs.

The following is the interface in the Site namespace.

- **[UrlRewriter Interface](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_site_urlRewriter_reference.htm#apex_site_urlRewriter_reference)**  
    Enables rewriting Sites URLs.
- **[Site Exceptions](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Site_exceptions.htm)**  
    The Site namespace contains an exception class.