1
We have a site that we need to make the urls look different on. I assume the only way to do this is with a mod rewrite, but I am not sure how to pull it off.
We need to make urls like:
www.sample.com/modules/tinycontent1/index.php?ID=12
Look something like:
www.sample.com/teachers/12.html
And if someone types in the latter url, it needs to redirect to the previous.
I have tried a mod rewrite hack I found here that successfully changes urls to be html files for better SEO, but I want to also change the names of the modules in the new url--like in the example above: "tinycontent1" into "teachers." So the urls make more sense to users.
I need to do this with several different modules, and I would rather not hack each module to use the name that we want, as that is a pain and I was hoping there would be an easier way to do it using mod_rewrite.
Any experts out there have an idea how to do that?