Help Changing URL With Mod Rrewrite After Permalink Change
-
I changed my permalink structure to be
/%postname%/ from /%year%/%month%/%date%
/%postname%/ and can’t seem to get a mod rewrite rule to fix this.It is a relatively young blog and so for the popular links I just made Redirects to the new URI but I want to clean up my .htaccess file and use just small a rule. I have tried the following:
RewriteRule ^/blog/[0-9]{4}/[0-9]{2}/[0-9]{2}/([^/]+)/?$ /blog/$1/
I am not sure where this should go (before or after the WP rule), if it is 100% correct and if it can even work. it seems as if it should but I am just getting my feet wet in RegEx and mod_rewrite syntax. Please help. Please!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Help Changing URL With Mod Rrewrite After Permalink Change’ is closed to new replies.