Project

General

Profile

Rewrite appending unknown number

Added by C Glass over 13 years ago

Hi,

I am close to completing my rewrite rules to move from Apache to Lighttp. As part of this, I am also changing a mod that rewrites urls for one of my applications and need help on this rule. I run lighttpd-1.4.26-2 over Centos 5.6 using Kloxo.

The old url is like http://example.com/forum/how-to-do-this
The new url is like http://example.com/forum/how-to-do-this-24.html

The number towards the end of the new url is the topic number that is in the database, and is different for each topic.

Is there a way to rewrite the old urls to the new urls? Thanks in advance for any direction.


Replies (1)

    (1-1/1)