I am making a site with photo albums for agents.
Each agent dir has unique numeric album folders containing an index.php file that redirects to a centralized album.php like this:
RewriteRule ^[^/]+/[^/]+/index\.php$ albumpage/album.php (I should make the second argument numeric though)
Now I would like to map shortcuts:
mysite/005 redirects to mysite/agent1/005
mysite/009 redirects to mysite/agent2/009
Since I will have lots of agent and album folders this needs to be dynamic.
I understand I should send URI requests to a php script, tied to a DB, which handles the 301
Another think I would love is SEO URI's:
mysite/005 redirects to mysite/agent1/005-some-nice-keywords
Is this possible? Thanks.