udleinati / redirect.center

Redirect domains using DNS only
http://redirect.center
MIT License
257 stars 49 forks source link

Add .opts for underscore #46

Closed stephanlachnit closed 2 years ago

stephanlachnit commented 3 years ago

I want to redirect to a website that has an underscore in it's link, but that's not possible with redirect.center. redirect.center will just spit the underscore out again (https://example.com/some_site gets converted to example.com.opts-slash.some_site.opts-https.redirect.center.). However, I can't enter underscores for CNAME entries. It would be nice, if they could be converted similar to the the equal sign (e.g. with .opts-us).

udleinati commented 2 years ago

@stephanlachnit is this problem still happening? I rewrote the code on top of nestjs and did some fixies. You can now use base32 encode replacing = by - and use any kind of content.

lordofire commented 2 years ago

@udleinati Seems like the redirection for app.testdomain.com.opts-slash.abc_test.opts-slash.test123.redirect.center. could not redirect to http://app.testdomain.com/abc_test/test123 now after the change, and I got the error like the following:

{"statusCode":500,"message":"NOTADOMAIN: The record on the host <our domain> is not valid.","error":"Internal Server Error"}

Can you help check? Thanks. (Just note that I have intentionally blurred the domain names above)

udleinati commented 2 years ago

@lordofire it's working now, try again.