hello internet. apache question
apparently, this is a valid url on my blog: https://blaurascon.nfshost.com/2025/04/12/hey-hi-im-still-here/?page=/blog/changing_vrchat_photos_destination
/2025/04/12/hey-hi-im-still-here/ points to an entirely different blog post (minus the datestamp; see below), but the page that's loaded is /blog/changing_vrchat_photos_destination because it's after the ?page=
(kiki recognizes both /this/url/type and ?page=this/url/type as valid. this is fine to me)
the /2025/04/12/ is a holdover from when i was using wordpress; none of my posts use that now
i would like to redirect anyone trying to access a malformed url like that to either site home or 404 with htaccess
my first thought is use regex to match either just the year or the whole date string, and then use that to redirect, but that's not working (the page keeps loading properly)
i think it's because it's reading the incoming thing as only what's after ?page= (the query), but i have not turned on the logs to specifically look at that quite yet
i'm starting with a spicy headache and have to take a break before i poke at this any more. do yall have any ideas?
#apache #webdev #techsupport