At the moment, we cannot provide support for this, because we're very focused on shipping the next version of Leanpub, and we just have a lot of other things to do.
However, we would like to help! Here are two ways forward:
1. Set up a personal website, which contains prominent links to your Leanpub books.
2. Try to figure out the redirect stuff yourself, using the information below as a possible guide.
Untested AI-Provided Guidance: Use At Your Own Risk!
Below is some AI-provided guidance which might be helpful.
Disclaimer
None of this has been tested by us, and we have no idea if any of these approaches will work for you. So, use any of it at your own risk!
Here's the AI support answer, between the dividers:
The short version is that Leanpub can’t issue an SSL certificate for your website because we don’t control that domain. However, you *can* get an https-to-https redirect working by moving the redirect to a service that provides free SSL.
Option 1: Cloudflare (recommended if you're comfortable changing nameservers)
---------------------------------------------------------------------
1. Create a free Cloudflare account.
2. In Namecheap (or whichever service you're using), change the domain’s nameservers to the two Cloudflare nameservers they give you.
3. Once DNS is active in Cloudflare, create a Redirect Rule (or Page Rule) to forward:
https://YOUR_WEBISTE_SLUG.com/* → https://leanpub.com/u/YOUR_PROFILE
with a 301 status code.
Cloudflare will issue a free SSL certificate for your domain and do the redirect at the edge, so everything works seamlessly over https.
Option 2: GitHub Pages
-----------------------
1. Create a GitHub repo named `YOUR_WEBSITE.github.io`.
2. Add an `index.html` with a meta refresh or JavaScript 301 redirect to your Leanpub URL.
3. Enable GitHub Pages for the repo and set the Custom Domain to `YOUR_WEBSITE_SLUG.com`.
4. In Namecheap (or whichever service you're using), point your domain to GitHub’s Pages IPs (A/AAAA records or CNAME).
GitHub Pages will handle https for you and serve the redirect cleanly.
Option 3: Netlify
------------------
1. Sign up for a free Netlify account and create a minimal site.
2. Add a `_redirects` file with one line:
/* https://leanpub.com/u/YOUR_PROFILE 301!
3. Add `YOUR_WEBSITE_SLUG.com` as a custom domain in Netlify.
4. Point your domain’s A or CNAME records to Netlify.
Netlify automatically issues an SSL certificate and handles the https redirect.
If You Find A Solution That Works, Please Share It With Us!
If you do find a solution that works, we'd really appreciate it if you could email the team at hello@leanpub.com about what you've found, and we'll share it here, so other Leanpub authors can also benefit from it.
Questions or Feedback
If you have any questions or feedback for this article, please email the Leanpub Team at hello@leanpub.com.
Subscribe to our YouTube channel! Growing our audience there really helps Leanpub authors like you get discovered! Plus you'll learn about other authors, and their experiences writing and publishing.
If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!
If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!
Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book
Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!
You can also follow Leanpub in lots of other places!