301 htaccess redirect: add segment to old URL's
Posted
by Rick
on Stack Overflow
See other posts from Stack Overflow
or by Rick
Published on 2010-04-02T13:07:40Z
Indexed on
2010/04/02
13:13 UTC
Read the original article
Hit count: 672
I'm trying to make sure old url's aren't broken after the site's URL structure has changed from this:
to this:
But to make it a bit more complex, I'm using the segments to sort entries, for example:
The new structure only effects one particular event (amazing_event) and should leave the other URL's alone. Where do I even begin to tackle this?
My current .htaccess looks like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Thanks - appreciate any tips.
© Stack Overflow or respective owner