~sircmpwn/sr.ht-discuss

2 2

sourcehut pages

Details
Message ID
<D8B22N0WIWBH.39HKML3B8QAHD@fastmail.com>
Sender timestamp
1741443626
DKIM signature
pass
Download raw message
Hello everyone,


I’d like to ask if it’s permitted to have multiple pages, such as the ones below:

  - 4c6e.xyz (blog)
  - cv.4c6e.xyz (job experience)
  - r1w1s1.srht.page (old one redirect to -> 4c6e.xyz)

Any feedback would be appreciated. Thank you!

--
BR,
r1w1s1
Details
Message ID
<a631447c-ddb4-4cca-95c9-3d5a2c2dc283@ariadnavigo.xyz>
In-Reply-To
<D8B22N0WIWBH.39HKML3B8QAHD@fastmail.com> (view parent)
Sender timestamp
1741513387
DKIM signature
pass
Download raw message
El 8/3/25 a las 18:20, r1w1s1 escribió:

> Hello everyone,
>
>
> I’d like to ask if it’s permitted to have multiple pages, such as the ones below:
>
>    - 4c6e.xyz (blog)
>    - cv.4c6e.xyz (job experience)
>    - r1w1s1.srht.page (old one redirect to -> 4c6e.xyz)
>
> Any feedback would be appreciated. Thank you!
>
> --
> BR,
> r1w1s1

Yes, you may have multiple pages.

What I'm not sure about is the redirect you mention last, though.
Details
Message ID
<24f8af1b-9f33-4870-b375-accfd8d4e01d@app.fastmail.com>
In-Reply-To
<D8B22N0WIWBH.39HKML3B8QAHD@fastmail.com> (view parent)
Sender timestamp
1742848381
DKIM signature
pass
Download raw message
The idea is that when you run `hut pages publish`, pass the domain name
via the `-d` argument:

hut pages publish -d 4c6e.xyz blog.tar.gz 
hut pages publish -d cv.4c6e.xyz cv.tar.gz

(from the custom domains docs[0])

I don't believe redirects are natively supported, but you could
approximate it with an http-equiv meta tag[0]:

<meta http-equiv="refresh" content="0; url=https://4c6e.xyz" />

Good luck!

[0]: https://srht.site/custom-domains
[1]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#refresh
Reply to thread Export thread (mbox)