Timeline for Question about repurposing WordPress 404 handler
Current License: CC BY-SA 4.0
22 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 7, 2021 at 18:04 | vote | accept | Yvan Gagnon | ||
S Feb 6, 2021 at 20:02 | history | bounty ended | CommunityBot | ||
S Feb 6, 2021 at 20:02 | history | notice removed | CommunityBot | ||
Feb 5, 2021 at 23:14 | comment | added | Tony Djukic | Yvan, the bounty is about to expire, let me know if KAGG's answer is sufficient. | |
Feb 2, 2021 at 16:41 | comment | added | Yvan Gagnon | I appreciate your opinion regarding this, and feel like it's a worthy topic of discussion in and of itself. To clarify, however, the /property/ path that you're referring to (which correlates to a custom post type) is currently being used to serve up actual posts (that return and display data from the WP DB). The approach that I'm experimenting with is -- "If a genuine post exists and is associated with this URL .. then retrieve and display it. Otherwise, serve up the expected 404 page template, parse the URL, and do something creative with it. Just please - server - don't tell Google!" :) | |
Jan 30, 2021 at 16:59 | comment | added | bosco |
I think this is a pretty significant abuse of WordPress's core mechanisms, and may conflict with behaviors from plugins that depend on them. A better solution would be to set up a rewrite rule to handle all of the behaviors associated with the /property/ path.
|
|
Jan 30, 2021 at 10:19 | answer | added | KAGG Design | timeline score: 1 | |
Jan 29, 2021 at 21:00 | history | tweeted | twitter.com/StackWordPress/status/1355259475981201408 | ||
Jan 29, 2021 at 18:08 | comment | added | Tony Djukic | I'm really curious to see if someone can figure this out. This seems like a useful thing to have bookmarked and in my 'locker'. :-) Anyway, bounty set. | |
S Jan 29, 2021 at 18:07 | history | bounty started | Tony Djukic | ||
S Jan 29, 2021 at 18:07 | history | notice added | Tony Djukic | Draw attention | |
Jan 29, 2021 at 18:05 | comment | added | Tony Djukic | Oh, a bounty is when you offer up a share of your reputation points to make getting an answer to your question more appetizing. It kinda promotes your question and makes it more prominent. So when you accept an answer someone get's the extra reputation points you assigned to the question. | |
Jan 29, 2021 at 16:53 | comment | added | Yvan Gagnon | Yes -- please put a bounty on it - and thank you. Pardon my noob-ness here, but what exactly is a "bounty"? | |
Jan 28, 2021 at 16:59 | comment | added | Tony Djukic | I’m curious to see the answer to this, if you like I can put a bounty on it. | |
Jan 28, 2021 at 16:59 | comment | added | Tony Djukic | If you have any further details you could update your question, or set a bounty on it, or delete it and add a new question with updated info... | |
Jan 28, 2021 at 16:40 | comment | added | Yvan Gagnon | How do I request attention to this question that I posted? Do I answer my own question or something? | |
Jan 18, 2021 at 20:30 | comment | added | Yvan Gagnon | Can anyone here provide any additional feedback? I certainly don't want to continue down this path if it's a dead end. Please advise -- thanks. | |
Jan 15, 2021 at 17:34 | comment | added | Yvan Gagnon | As a potential fallback plan .. is there any way to set up special filters within a Google Analytics account (or within an .htaccess file, perhaps) that would purposefully ignore 404s for any URLs that include "/properties/" in them? By that I mean ... find a way to tell Google "Yes, we already know about those URLs, but please don't hurt our SEO ranking because of them." | |
Jan 15, 2021 at 17:34 | comment | added | Yvan Gagnon | You bring up a good point. As I've been researching this, however, I kept coming across references to this WordPress status_header()" method: developer.wordpress.org/reference/functions/status_header It's just not clear as to exactly how or where I'd need to implement this within the WordPress framework's execution chain, or if the search engine crawlers would even acknowledge it .. as you've just pointed out. Does anyone else here have any information or advice regarding this? Thanks, -- Yvan | |
Jan 14, 2021 at 20:35 | comment | added | Tony Djukic | I like this question... like what you’re doing... here’s my immediate thought... the 404 status code is registered before that page loads and before your code runs, because that’s how it knows to run your code. So I’m wondering if it’s even possible to retroactively change the status code? | |
Jan 14, 2021 at 18:27 | review | First posts | |||
Jan 14, 2021 at 20:00 | |||||
Jan 14, 2021 at 18:19 | history | asked | Yvan Gagnon | CC BY-SA 4.0 |