neocities/views/custom_domain.slim
2013-09-25 14:31:02 -07:00

27 lines
1.7 KiB
Text

.page
.content
h1.txt-Center Custom Domain
h3.txt-Center (advanced)
.txt-Center
- if !current_site.errors.empty?
.alert.alert-block.alert-error
- current_site.errors.each do |error|
p = error.last.first
.row.c-Row
.col.col-66
.content
p Adding a custom domain allows you to have a domain name attached to your web site. So if you had a domain like <strong>catsknitting.com</strong>, you could have it point to your NeoCities site!
p You will have to purchase a domain name from a registrar like <a href="https://www.namecheap.com/?aff=53678" target="_blank">Namecheap</a>, and then add an A record to point your domain (catsknitting.com) to the following IP address:
p <code>198.27.81.179</code>
p If you want to add a <strong>www</strong> subdomain, or use a wildcard that will answer to everything (<strong>*</strong>), you will have to make a CNAME pointing to <strong>catsknitting.com</strong> for <strong>www</strong> and/or <strong>*</strong>.
p After that, you can add the domain to the box below (just the <strong>catsknitting.com</strong>, don't add any subdomains), and your domain should come online within 5 minutes:
form method="POST" action="/custom_domain"
input name="csrf_token" type="hidden" value="#{csrf_token}"
input name="domain" type="text" placeholder="catsknitting.com" value="#{current_site.domain}"
br
input.btn-Action type="submit" value="Update Domain"
p <strong>NOTE: This is for advanced users, we cannot provide technical support for this feature.</strong> If you cannot make this work, please contact your domain registrar.