Timeline for How do I redirect all 404 error url to Subcategory url
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 21, 2019 at 6:03 | vote | accept | XATA | ||
Jun 6, 2019 at 22:05 | answer | added | XATA | timeline score: 1 | |
Jun 6, 2019 at 20:01 | comment | added | Rick Hellewell | errordocument 404 /your-subcatetory-page-without-domain-name . Place the lines above the WP htaccess lines. Use the actual page you want to redirect to if a page is not found. If you want to do some WP logic to a specific page based on some condition, then create/use a '404' template. Also, see wordpress.stackexchange.com/questions/268669/… | |
Jun 6, 2019 at 19:41 | comment | added | XATA | its not working.check my post, I did not mention specific url, I mention urls that match the same url i deleted | |
Jun 6, 2019 at 18:08 | comment | added | Rick Hellewell | If you use that link, you can see how to redirect a '404' response to another page. You provide the page you want to show in the command. You don't need a 404 page, you just need the 'errordocument' command to 'catch' a 404 response and send it to the page/link you desire. | |
Jun 6, 2019 at 14:01 | comment | added | XATA | That does not fix my issue, because I don't have 404 error page at my public_html, wp theme function would be the best recommendation. | |
Jun 5, 2019 at 19:28 | comment | added | Rick Hellewell | See the answer here stackoverflow.com/questions/19962787/… . Example shown in that answer. | |
Jun 5, 2019 at 19:07 | history | asked | XATA | CC BY-SA 4.0 |