Hi

I have changed some urls and know how to do a normal redirect but do not know where to start to be abale to redirect if part of the url contains certain words Example

thisdomain.com/this/now-when/ would be redireted to thisdomain.com/this/an-other/

There is quite a few of them with the ending so cant just type each one in as a normal redirect.

Hope someone can help

Thanks

Hi,

can you explain it a bit more? If I've understood you want to redirect only certain urls basing on regular expressions, correct? Are these slugs (now-when, an-other) saved into a database?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.