ForumSpark Support app Faster, straight from your home screen. Tap Share, then Add to Home Screen.
Add ForumSpark Support to your home screen
  1. Tap Share at the bottom of Safari.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add. ForumSpark Support now opens like an app.
  1. Tap Install, or open the browser menu.
  2. Choose Install app or Add to Home screen.
  3. Confirm. ForumSpark Support now opens like an app.

Domain Manager

Deleted User's Avatar
Deleted User · in Support
3 replies 536 views

Is there a way to set up a domain and use it as primary and whenever someone goes to the original subdomain that it forces the new domain name?

0

You can accomplish this with a piece of JavaScript in the head section, for example:

<script>
const defaultDomain = 'sparkpromotion.forumspark.net';
const customDomain = 'google.com';

if (window.location.hostname === defaultDomain) {
    window.location.href = 'https://' + customDomain + window.location.pathname + window.location.search;
}
</script>

0

Would be easier to have it as default especially if this platform allows custom domains.

Does that code do a wildcard redirect?

0

Yeah, it's annoying that happens. I'll look into this if I can fix that. I'll keep you updated.

You might also like...

Topic Replies Views Last reply
Domain Manager In Support, started by Deleted User, 8 months ago
8 520
empire's Avatar
empire8 months ago
15 806
Deleted User's Avatar
Deleted User3 months ago
Custom domain now redirects to not found page In Support, started by Excalibur, 4 days ago
4 262
Cedric's Avatar
Cedric2 days ago
Custom domain help In Support, started by NeoMetallix, 5 months ago
3 597
Cedric's Avatar
Cedric5 months ago
Custom Domain Assistance In Support, started by Nous, 16 hours ago
2 74
Nous's Avatar
Nous5 hours ago