Re: Request for multiple IDs

Hi,
We recently had a nice contribution with improved docs:
https://github.com/perma-id/w3id.org/tree/master/examples/

Please don't add 1600+ rules!  A simple pattern match will do that in one
line. :-)  Note that the csv didn't have the w3id CMECS prefix in the
URLs.  The simplest .htaccess template is something like the following
which would redirect all sub-paths to your URL.  You could restrict that to
that naming pattern if needed or let it send everything to your server.
Can put the maintainer metadata in the README or .htaccess as you prefer.

```
# CMECS
#
# This space is administered by:
#
# Firstname Secondname
# email@example.com
# GitHub username: xxx

RewriteEngine on
RewriteRule ^ https://mmisw.org/ont/~katerose/CMECS [R=302,L]
RewriteRule ^(.*)$ https://mmisw.org/ont/~katerose/CMECS/$1 [R=302,L]
```

-dave


On Thu, Nov 2, 2023 at 11:40 AM Kate Rose - NOAA Affiliate <
Kate.Rose@noaa.gov> wrote:

> Hello,
>
> I would like to generate w3ids for a series of 1626 URLs so that
>
>    - the upper level project id https://w3id.org/CMECS would redirect to
>    https://mmisw.org/ont/~katerose/CMECS
>    - and the sub-ids, eg. https://w3id.org/CMECS/CMECS_00000000 (and all
>    following sub-ids) redirects to
>    https://mmisw.org/ont/~katerose/CMECS/CMECS_00000000.
>
> The complete list is attached. Would you please advise if it is possible
> to submit these as a batch?
>
> I have forked the https://github.com/perma-id/w3id.org git repo and
> created a CMECS directory and readme. I'm not sure how to create the
> .htaccess though, because I have very little experience with this. Are
> there more instructions or advice that you can give me?
>
> Thank you in advance,
> Kate
>
> Kate Rose
> (She/Her)
> Senior Research Associate
> Northern Gulf Institute / Mississippi State University
> NOAA National Centers for Environmental Information
> Coasts, Oceans, and Geophysics Science Division (COGS)
> 1021 Balch Blvd.
> Stennis Space Center, MS 39529
>
> Tel: 228-688-1878
> Telework: 213-810-0185
> kate.rose@noaa.gov
>
>

Received on Thursday, 2 November 2023 20:39:02 UTC