Forum Moderators: phranque
I have renamed some of my files from original number only file name such as 234.html to something meaningful by using the page title as part of the file name such as "tittle_234.html". For all the files, the number in the file name is the unique identifier and the title is different. How can I redirect the old name to the new one?
Thank you for your help.
Which of these you choose depends on how many URLs you need to redirect, your level of scripting/database/server config skills, and what privileges you have to configure the server.
Jim
If you have server config-level privileges, you can use mod_rewrite's RewriteMap directive to access a lookup table -- or to call a script that can access your existing database (with new/old URL info added to it), to do the rewriting. But for only 30 URLs, it'd be much simpler to just add 30 Redirect or RewriteRule directives.
Jim