cydrobolt / polr

:aerial_tramway: A modern, powerful, and robust URL shortener
https://polrproject.org
GNU General Public License v2.0
4.98k stars 891 forks source link

Must the polr webpage be at the base of the domain? #573

Open ifuchs opened 3 years ago

ifuchs commented 3 years ago

I have a domain which has a webpage and I would like to use this domain for shortened urls but keep the existing index.html. Is this possible? That is, say the domain is my.domain, must the polr webpage be at that address or could it be anywhere else and still create shortened urls beginning with my.domain?

ifuchs commented 3 years ago

Can anyone please answer this or at least make an informed guess?

steveroot commented 3 years ago

Some guesses; A) use a subdomain, eg: polr.my.domain

B) use redirects in nginx/Apache I think harder. You'd have to know all things you don't want polr to process (index.html, stuff/about.php, newstuff/video.mp4) and direct them first. Then pass anything bthat doesn't match to polr.

It's been a long while since I used polr and I can't recall how it was setup with nginx. I think subdomain is easiest way

sent from my mobile

On Tue, 3 Nov 2020, 18:05 ifuchs, notifications@github.com wrote:

Can anyone please answer this or at least make an informed guess?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-721290539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVV7ZYUUMY5H5MEREJZKLSOBA55ANCNFSM4TG5WX4Q .

ifuchs commented 3 years ago

Subdomain is fine but does that mean all shortened urls will have to use the subdomain or can the polr ui page be accessed via the subdomain while shortened urls use the (shorter) root domain?

On Nov 5, 2020, at 12:20 PM, Steve Root notifications@github.com wrote:

Some guesses; A) use a subdomain, eg: polr.my.domain

B) use redirects in nginx/Apache I think harder. You'd have to know all things you don't want polr to process (index.html, stuff/about.php, newstuff/video.mp4) and direct them first. Then pass anything bthat doesn't match to polr.

It's been a long while since I used polr and I can't recall how it was setup with nginx. I think subdomain is easiest way

sent from my mobile

On Tue, 3 Nov 2020, 18:05 ifuchs, notifications@github.com wrote:

Can anyone please answer this or at least make an informed guess?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-721290539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVV7ZYUUMY5H5MEREJZKLSOBA55ANCNFSM4TG5WX4Q .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-722518695, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSBNDNJR7HLAFY4FLUTSOLNGHANCNFSM4TG5WX4Q.

steveroot commented 3 years ago

They'd all use the subdomain. The subdomain can be a single letter, A link would be l.domain.com/short => www.domain.com/some/other/place

sent from my mobile

On Thu, 5 Nov 2020, 17:47 ifuchs, notifications@github.com wrote:

Subdomain is fine but does that mean all shortened urls will have to use the subdomain or can the polr ui page be accessed via the subdomain while shortened urls use the (shorter) root domain?

On Nov 5, 2020, at 12:20 PM, Steve Root notifications@github.com wrote:

Some guesses; A) use a subdomain, eg: polr.my.domain

B) use redirects in nginx/Apache I think harder. You'd have to know all things you don't want polr to process (index.html, stuff/about.php, newstuff/video.mp4) and direct them first. Then pass anything bthat doesn't match to polr.

It's been a long while since I used polr and I can't recall how it was setup with nginx. I think subdomain is easiest way

sent from my mobile

On Tue, 3 Nov 2020, 18:05 ifuchs, notifications@github.com wrote:

Can anyone please answer this or at least make an informed guess?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-721290539, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABVV7ZYUUMY5H5MEREJZKLSOBA55ANCNFSM4TG5WX4Q

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/cydrobolt/polr/issues/573#issuecomment-722518695>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABLDPSBNDNJR7HLAFY4FLUTSOLNGHANCNFSM4TG5WX4Q .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-722534594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABVV77Q3C7RPJ2ALRB4WTLSOLQKXANCNFSM4TG5WX4Q .

ifuchs commented 3 years ago

Thanks. I’m looking for a way to use the domain name with no subdomain but keep polr page anywhere else. I gather yourls can do that so perhaps best bet is to use that. On Thu, Nov 5, 2020 at 1:10 PM Steve Root notifications@github.com wrote:

They'd all use the subdomain. The subdomain can be a single letter, A link would be l.domain.com/short => www.domain.com/some/other/place

sent from my mobile

On Thu, 5 Nov 2020, 17:47 ifuchs, notifications@github.com wrote:

Subdomain is fine but does that mean all shortened urls will have to use the subdomain or can the polr ui page be accessed via the subdomain while shortened urls use the (shorter) root domain?

On Nov 5, 2020, at 12:20 PM, Steve Root notifications@github.com wrote:

Some guesses; A) use a subdomain, eg: polr.my.domain

B) use redirects in nginx/Apache I think harder. You'd have to know all things you don't want polr to process (index.html, stuff/about.php, newstuff/video.mp4) and direct them first. Then pass anything bthat doesn't match to polr.

It's been a long while since I used polr and I can't recall how it was setup with nginx. I think subdomain is easiest way

sent from my mobile

On Tue, 3 Nov 2020, 18:05 ifuchs, notifications@github.com wrote:

Can anyone please answer this or at least make an informed guess?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <https://github.com/cydrobolt/polr/issues/573#issuecomment-721290539 , or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AABVV7ZYUUMY5H5MEREJZKLSOBA55ANCNFSM4TG5WX4Q

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/cydrobolt/polr/issues/573#issuecomment-722518695>, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ABLDPSBNDNJR7HLAFY4FLUTSOLNGHANCNFSM4TG5WX4Q

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-722534594, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AABVV77Q3C7RPJ2ALRB4WTLSOLQKXANCNFSM4TG5WX4Q

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cydrobolt/polr/issues/573#issuecomment-722547944, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLDPSAH6FEA5FRSIAUCK53SOLTBXANCNFSM4TG5WX4Q .