mod_rewrite - short urls?
Hi there!
I have many subfolders; lets say 200. And any of them contents a index.html. (all my links are static! NOT dynamic like index.php?id=something here)
A specific link for this time looks like this:
Code:
<a href="folder_1/folder_2/specific_folder/index.html">linktext</a>
At this point you can see, it's all normal.
Right. ^^
Ok, now i don't want this long url in the browser. It looks not good and(!) maybe a hacker or whatever can now check the folders. I just won't it.
I want to show it like this:
Code:
<a href="specific_folder/name-of-content">linktext</a>
But how i can do this?
Wordpress can do this and many other boards, too.
So i have think about it and searched for many weeks(!), but found no solutions.
Can you help me? Please?
Because my next Problem ist, the "specific_folder" changes with the content.
It's not all the same if you know what i mean.
It is very hard for me to explain this all, because my english is very bad. But the other german forums can't help me. Maybe they're fool or something. ^_^
With other (short) words:
Now i have looong urls and i want it short because i could stop spending time for hours and hours to implement long links in to my homepages.
I hope very very much, anyone can help me further.
Thank you very much!
Best Greetings from Northgermany, miow
EDIT:
Hmmm, or i have to do dynamic urls like "index.php?id=yadayada" for my solution??
It's very hard to understand for me.