I’ve created a ‘tabbed’ layout on custom taxonomy archives on my website and successfully rewritten my permalinks so that visitors to mywebsite.com/player/player_name/tab_name see some conditional content as a child of the term. There’s currently about four tabs in action.
However, it’s just come to my attention that a request to a non-existing tab resolves but is empty because it doesn’t meet the get_query_var()
requirements. My question is, what is the best method to 404 any requests to a tab which I haven’t explicitly declared any content for, like mywebsite.com/player/player_name/tab_dont_exist? Should it happen at the point of redirect rule creation or at the point of content output?
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com