On This Page
Domain Management
Adding a New Domain
Step: Open Add Domain Modal
- Navigate to the "Domains" page from the sidebar
- Click the "Add Domain" button in the page header
- The Add Domain modal will open
Step: Enter Domain Name
- In the "Domain Name" field, enter your domain (e.g.,
example.comorsubdomain.example.com) - Requirements:
- Must be a valid domain format
- Cannot start or end with a dot
- Cannot contain consecutive dots
- Maximum 253 characters
- The field will validate as you type
Step: Configure Routes
- In the "Routes" section, you'll see at least one route input (default:
/go/*) - To add more routes:
- Click the "+ Add Route" button
- Enter the route path (e.g., /r/*, /link/*)
- Each route must be unique
- To remove a route:
- Click the "Remove" button next to the route (only available when there are multiple routes)
- Important: At least one route is required
- Note: These routes must be configured in your Cloudflare Workers route settings
Step: Set Default Redirect Code
- In the "Default Redirect Code" dropdown, select:
- 301 - Moved Permanently: Permanent redirect (best for SEO)
- 302 - Found (Temporary): Temporary redirect
- 307 - Temporary Redirect: Preserves request method
- 308 - Permanent Redirect: Preserves request method
- This code will be used as the default for all links on this domain (can be overridden per link)
Step: Configure Dashboard Access (Optional)
- Check the "Allow dashboard access via this domain" checkbox if you want users to access the dashboard using this domain
- If unchecked, the dashboard will only be accessible via the default domain
Step: Create Domain
- Review all settings
- Click the "Create Domain" button
- The modal will close and you'll see a success notification
- The new domain will appear in your domains list
Step: Configure Cloudflare Routes
- After creating the domain, you must configure the routes in Cloudflare Workers
- Go to your Cloudflare dashboard
- Navigate to Workers & Pages > Routes
- Add routes matching the ones you configured (e.g.,
example.com/go/*) - Point them to your Worker
Editing a Domain
Step: Open Edit Modal
- On the Domains page, find the domain you want to edit
- Click the "Edit" button on the domain card
- The Edit Domain modal will open (same as Add Domain)
Step: Modify Domain Settings
- Domain Name: Can be changed (will affect all existing links)
- Routes: Add, remove, or modify routes
- Default Redirect Code: Change the default redirect code
- Dashboard Access: Toggle dashboard access
Step: Save Changes
- Click the "Update Domain" button
- The modal will close and you'll see a success notification
- The domain card will refresh with updated information
Activating/Deactivating a Domain
Step: Toggle Domain Status
- On the Domains page, find the domain you want to activate/deactivate
- Click the "Activate Domain" or "Deactivate Domain" button
- A confirmation dialog will appear
Step: Confirm Action
- Read the confirmation message:
- Deactivating: "Are you sure you want to deactivate this domain? Links will stop redirecting and new links cannot be created."
- Activating: "Are you sure you want to activate this domain? Domain will be re-enabled and links will start redirecting again."
- Click "OK" to confirm or "Cancel" to abort
Step: Verify Status
- The domain status will update immediately
- Inactive domains show a warning box
- Active domains function normally
Important Notes
- Deactivated domains: Links will not redirect, new links cannot be created
- Activated domains: All links work normally, new links can be created
- Status changes take effect immediately