Timeline for Wordpress or Apache or Nginx matching partial URL to full URI
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 24, 2019 at 20:50 | review | Close votes | |||
| Mar 24, 2019 at 22:36 | |||||
| Mar 24, 2019 at 15:01 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
| Feb 22, 2019 at 14:29 | answer | added | willstocks_ | timeline score: 1 | |
| Feb 22, 2019 at 14:14 | comment | added | willstocks_ | Thanks @StephenOstermiller - do you want to pop that in as an answer and I'll accept it? :) | |
| Feb 22, 2019 at 12:40 | comment | added | Stephen Ostermiller♦ | The front controller is standard WordPress stuff (almost all content management systems do it.) I know that WordPress has some settings for how your URLs should look, but I'm not well versed in them. Ideally it would show a 404 error or redirect for URLs that aren't in exactly the right format. I'm not sure if there are plugins that would help make that happen. | |
| Feb 22, 2019 at 12:12 | comment | added | willstocks_ | Thanks @StephenOstermiller - is this standard wordpress behaviour? I'd never noticed this before, but it seems... "dangerous" to me to "match" part of a url to a full resource. For instance, I have a lot of posts that start /review-, but if I just visit example.com/review - I get one random post. If these were products (let's say /blue where I have /blue-tshirt, /blue-trousers & /blue-jumper), how does WP decide which page to use? Surely in that scenario, if there are multiple matches it should just be forwarding to example.com/?s=blue not picking a single page?? | |
| Feb 22, 2019 at 10:23 | comment | added | Stephen Ostermiller♦ | You have a "front controller" rewrite rule for WordPress: RewriteRule . /index.php [L] This assigns every URL that isn't an actual file or directory to be handled by WordPress. It is WordPress itself that is doing this, not your config files. | |
| Feb 22, 2019 at 9:10 | review | First posts | |||
| Feb 22, 2019 at 10:24 | |||||
| Feb 22, 2019 at 9:09 | history | asked | willstocks_ | CC BY-SA 4.0 |