| Posted: 28 September 2008 at 10:18am | IP Logged
|
|
|
Hello.
Let me say first off that you product is just awesome - considering it works in MS environment (although I am using Lite version...still).
I have some questions on how to proceed on using rewrite engine. I have been experimenting with regexps and have read trough almost every post. I am still just a newbie and much in a need of help - reg-ex are still quite some mystery to me 
I have some basic question on how to proceed by using rewrite on my site. Basically, I would like to rewrite my blog articles, categories, tags and perhaps static pages. I see that there are many ways on how to accomplish that. This is my idea - so please correct me on any step...
..my articles are taken from database like this: default.asp?display=1
to have it displayed like: /articles/now-this-is-a-test/, I have been using this settings:
Code:
RewriteMap mapfile txt:mapfile.txt} RewriteRule ^articles/([^?/]+)/ /default.asp?display=${mapfile:$1}
|
|
|
This work just fine - I have appropriate entries in mapfile.txt - it still works if I just enter default.asp?display=1 - so now problems here yet.
Now I have some questions - to better differentiate site rewrite rules, I am to use more mapfiles - one for articles, one for categories, one for tags right? Is there a better way to do it? Also, this is not possible without mapfiles? I am asking this because I have some Linux sites and rewrite engine also turned on - for eg. Wordpress uses this mod (directly from apache) - does it also store this mapfile somewhere? How does it manage to rewrite it if not? <- strike this - I found its rewrite slugs to be in database - it seems that it selects data from it, and rewrites afterwards, dunno how.. Also there is some integration question - If I am to use this extension in live production site, and if I add new article, how do I setup automatisation of this rewrite process? I mean I can make my code to append new lines into mapfile.txt - just not sure if this is the best solution. Any suggestion/change would be greatly appreciated.
Will have some more questions later - I hope I can count on your help. Thank you for now, later.
Edited by DarkMaster - 28 September 2008 at 11:34am
__________________ I am the First One.
|