Forum Moderators: bakedjake
a1,a2,a3,a4...b1,b2,b3,b4 and so on.
You can imagine what the Url looks like:
...com/mysite.php?page=a1
Which I have rewritten to:
...com/a1.html or ....com/a1/
What I do know is that if I put this:
RewriteEngine on
RewriteRule ^.*/(.*)\.html$ /mysite.php?page=$1 [L]
It will just look in the root directory, thereby defeating the purpose...
I think you are missing the point a bit. If you want to actually create the directory tree and have the files reside in them, you are basically building a static site and don't need mod_rewrite.
The purpose of the dynamic site is to be able to keep all your data in one centralized area(typically a database) and then extract the data out according to the variable in the script. This way, your site seems to have separate folders when, in reality, it doesn't.
Do you have MySQL available to you? If so, I recommend using it to store your data.
Please feel free to ask more questions! I'm heading out of town for the weekend but there are many dynamic website gurus around here(me not one of them ;) ).
Birdman
The purpose of the dynamic site is to be able to keep all your data in one centralized area(typically a database) and then extract the data out according to the variable in the script. This way, your site seems to have separate folders when, in reality, it doesn't.
Are there any primers that you (or anyone) can point me to on building 'your first simple db site'? <wine>It's been a long week, I've filtered a lot of coffee, and I have searched about this topic - problem is that I wasn't sure what to search for - I guess now I sorta know.<wine />