Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2014-05-01 05:55:34
- piyashrija
- Member
- Registered: 2012-05-17
- Posts: 30
gpb_permlink and 404 page
Hi,
I am using gbp_permlink to ease different url requirement for my website.
Textpattern url mode : messy
I have problem to redirect wrong url to 404 page.
http://test.com/section/wrong_category/title should go to 404 page but currently its going to home page with status code 200.
Any help appreciated.
Thanks
Offline
#2 2014-05-02 01:04:54
- piyashrija
- Member
- Registered: 2012-05-17
- Posts: 30
Re: gpb_permlink and 404 page
Hi there,
I fixed the problem by hacking the plugin. I couldn’t find another way around.
Under the function _textpattern ()
There is case scenerio where it checks different field of url with the database. Currently if False there is no statement. So have to add manually
$match = false;
$pretext[‘status’] = 404;
If date is used in url one more change around line 500 and add
$pretext[‘status’] = 404; (if condition is false)
It works for me
Thanks
Last edited by piyashrija (2014-05-02 02:58:41)
Offline
Pages: 1