I've been working on this php script based off of tinyib to work just like 4chan, yeah.. you heard right.
I came to a problem when I noticed how 4chan interprets page requests as so~
<a href="1">1</a>
Now the above is obviously a request for the second page on almost any board at the place and when you click it, the url changes from ~
http://boards.4chan.org/g/
to the url
http://boards.4chan.org/g/1
And if you add a trailing backslash to the url as so~
http://boards.4chan.org/g/1/
you will get an error which should mean the request is not a directory but an argument sent over the url like the typical forum values you see like ~
forum.net/forum.php?Page=1
Some one told me that moot uses mod_rewrite to interpret the request, I couldn't get the said module to work under uniserver for some reason, even though "server-info" screams at me that the module is loaded and ready to go, but when I add a rule, it gives me a server error or apache fails to run when restarted.
I'm basically very close to replicating 4chans script. but I cannot figure out how to interpret the url in my script so I can deliver the right page.
Heres how 4chan uses the page ref ~
<a href="1">1</a>
Very simple looking but I don't know how to catch this and not get a 404 error because of the "1" which apache thinks is a directory.