jhanarato — 2013-01-01T20:45:46-05:00 — #1
I am working on a rewrite of a Buddhist scholastic website Sutta Central. Much work has gone into developing an HTML5/CSS presentation. I'm actually a Buddhist monk, but in a "past life" I wrote code for a living. I have taught myself PHP using the excellent books "PHP: Novice to Ninja" and "PHP Master" and thus came across this site. So, the actual question:
Say I have a URL like this:
Is it possible somehow to display this page when you follow a link like this:
Where Pali is a collection of divisions in the Pali language and DN denotes the "Digha Nikaya" division in this collection.
Thanks in advance!
cups — 2013-01-02T07:46:05-05:00 — #2
This is generally achieved using Apaches mod_rewrite.
I trust this marvellous text puts you on the path to enlightenment.
jhanarato — 2013-01-03T19:05:27-05:00 — #3
Thanks for the pointer. I suspected this was the way to do it (I think it mentions this technique in PHP Master), but I'm not sure I have privileges on the server to do so. I will investigate and discuss it with the dev team.
cups — 2013-01-04T07:13:02-05:00 — #4
You could create a folder and then put a .htaccess file into that folder. If mod_rewrite is enabled on the server, then that rule should be applied.
This post contains some really simple rules you could copy/paste into your .htaccess file to do this initial check.
Good luck with this.
jhanarato — 2013-01-14T20:07:21-05:00 — #5
Thanks so much for your help. mod_rewrite is indeed enabled for our host.