htaccess help required

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I wonder if anyone can help, we recently changed the permalinks in our
wordpress blog to

our old permalinks were as below

Is there a way with htaccess we can divert the old urls as in the one
above to the new urls but losing the /2006/06/25/ and keeping the

So anyone going to
 will be diverted to

Kind regards


Re: htaccess help required

Cheaperholidays wrote:

Quoted text here. Click to load it


Quoted text here. Click to load it

You don't explain what the more general case is. For example, will the
URLs to be redirected always start with '/late-deals/'? When you redirect
them, will you always include '/holidays/' as an extra path component?

The following redirect rule should perform the specific redirection
mentioned in your post, but without any further info I couldn't say
whether it will be useful to you in the general case.

RewriteEngine on
RewriteRule ^/late-deals/[0-9]+/[0-9]+/[0-9]+/.*$ /late-deals/holidays/$1

Toby A Inkster BSc (Hons) ARCS
Contact Me  ~

Site Timeline