Score:1

Apache Rewrite Permalinks on non-WordPress site

vu flag

I've inherited a legacy PHP site running on Apache with a custom CMS. The URL structure is currently: https://example.com/topic.php?id=100&Title=Blog+Post+Topic

Is there an easy(-ish) way to automatically map that URL to a more friendly URL using an Apache rewrite so that the URL is like: https://example.com/blog-post-topic/

It reminds me of how WordPress permalinks map its /?p=100 style URLs to /blog-post-topic/

Any and all help is certainly appreciated. Thanks for reading.

in flag
No, there isn't.
in flag
Most probably you will have to create a [`RewriteMap`](http://httpd.apache.org/docs/current/rewrite/rewritemap.html).
vu flag
Thank you, I will try this out.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.