Switchboard redirects #540
-
If I have bix.omg.lol/now set to redirect to one of my custom domains (slow.dog, the one that I edit as a profile page), and bix.omg.lol itself redirects to slow.dog, how do I also get slow.dog/now to just redirect to slow.dog? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I finally fixed something that I’ve been meaning to fix forever—and your post here was the nudge I needed, heh. Previously, if you had a custom domain pointed at your web/profile page in the Switchboard, it would show that page as expected (unless the URL matched a PURL or paste, in which case it would whisk you over to that). If the URL was something other than the base domain (like /foo or /bar) and there wasn’t a matching PURL/paste, it would just show the page... even if there was nothing that technically “lived” at that specific URL. A few days ago I decided to “fix” this by returning a 404 in those cases where /foo or /bar were requested but neither was a PURL or paste, but I still displayed the profile page anyway. I figured, hey, this resource technically doesn’t exist—so, I should return a 404 (but still want to show the profile page because I don’t really have anything else to show—there’s no support for custom 404 pages yet). But then that broke a bunch of people’s site monitors that evidently were pointed at various URLs (from previous uses of the their custom domains, I guess?) and I had to revert that change. Tonight I think I found the ideal solution. Now when this scenario arises, I’ll just redirect to the base domain. So a request for slow.dog/now will now redirect to slow.dog, because there’s nothing to show at /now. Hopefully this takes care of things universally now. Let me know if you have any questions or feedback on the update. |
Beta Was this translation helpful? Give feedback.
I finally fixed something that I’ve been meaning to fix forever—and your post here was the nudge I needed, heh. Previously, if you had a custom domain pointed at your web/profile page in the Switchboard, it would show that page as expected (unless the URL matched a PURL or paste, in which case it would whisk you over to that). If the URL was something other than the base domain (like /foo or /bar) and there wasn’t a matching PURL/paste, it would just show the page... even if there was nothing that technically “lived” at that specific URL.
A few days ago I decided to “fix” this by returning a 404 in those cases where /foo or /bar were requested but neither was a PURL or paste, but I still …