Hi - I am a travel photographer as well as a php/mysql web developer. I have a number of images with Getty, and was interested to see that when displaying one of my images, they use a directory name based on the image title, then the image id number in the web URL, presumably for SEO ranking purposes.
They obviously don't have a separate directory for each of their milllions of images, so I assume the middle named directory is a dummy, created on the fly, and bypassed on the fly when the viewer wants to see the '148624493' image.
My question: how is this done, and could I do something similar on my own php/mysql site? Any tips, hints, guides or links to descriptions or tutorials will be much appreciated. I have done a lot of searching but come up with nothing useful so far.
You can do those things with .htaccess and php code in the page. The "directory" is really a variable for the image title, and the number of course is the image number. .htaccess can parse the long directory name to a variable such as;
You can do those things with .htaccess and php code in the page. The "directory" is really a variable for the image title, and the number of course is the image number. .htaccess can parse the long directory name to a variable such as;
Bookmarks