1 pirsquared Aug 28, 2009 11:10
3 pirsquared Oct 09, 2009 00:52
Thanks for replying, EdB.
If I read you right, I was trying to do what you think I should have been trying to do. That is, I create a stub file — say, stub.php — configure it as desired and request it explicitly in the URL when visiting the blog — say, domain/news/stub.php. That way, even if the blog is set to use one skin or what have you by default, I can have it use another skin (or what have you) by calling stub.php — yes?
But that's not what would happen. What would happen is that every time I tried to access the blog through a stub file, I would be redirected to the base URL, and the blog would be rendered in its default configuration.
Coming back to it with a fresh mind these months later, it didn't take me too long to figure out the problem, though! I created a fresh installation of 2.4.7, and everything worked fine. Going back to a fresh installation of 3.3.1, I still had the same problem. What was the difference?
Turns out the problem was being caused by the blog's SEO settings. 3.3.1 comes with a new setting: "301 redirect to canonical URL when possible", and it was nearly always possible, even when I wanted to use a stub file. :roll:
After disabling that particular option, my stub files are working fine. Thanks for raising my thread from the dead. I couldn't have done it without you! :D
I think the telling line is this one:
YOU will be able to call it that way. It won't: you will.
Sounds like a really bad thing in the manual to me because as you've identified, the only stub file b2evolution will automagically work with is the one identified in the back office on the URLs subtab.
:(