wordpress - Changing Permalinks -


i want change permalinks /%year%/%monthnum%/%day%/%postname%/ /%postname%/

but when added following .htaccess file, posts didn't redirect way thought would:

redirectmatch 301 /dddd/dd/dd/(.*) /$1

what need put .htaccess file make work?

my site http://sweatingthebigstuff.com

i think missing point here - think @daniel has changed permalinks, , wants redirect old permalinks.

the problem redirectmatch regex matching literal 'd', not digits.

personally use instead;

redirectmatch 301 ^/[0-9]{4}/[0-9]{2}/[0-9]{2}/(.+)$ /$1 

however, @markratledge right in saying there issues using postname.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -