I have a giant site that I am implementing a mod_rewrite on. This is my first time dealing with this so I'm still working out some major kinks. That being said, I have reg-ex figured out for all of my single pages via:
RewriteRule ^([a-z_-]+)/?$ /$1.php [L,QSA]
which in turn yields something like this:
www.blah.com/page
With the above rule, I have changed my php
files to be the same name, except without the .php
extension. So for example, the previous pretty url's .php
is named page.php
Now, I have made a url goal list for all of my dynamic multi part url pages. Those will ideally look something like this:
www.blah.com/page/extention_of_page/id/title-title
or
www.blah.com/page/id
Obviously I can't rename each .php
for each or when it comes to dynamics it gets a little trickier, so naturally I'm going to categorize my files in folders and feed them that way.
So now that you should have a good idea of what I'm trying to achieve, what would the rewrite rule ( or two ) that would encompass the last two url examples?
thanks in advance