[wp-trac] [WordPress Trac] #30340: .htaccess bug

WordPress Trac noreply at wordpress.org
Sat Nov 22 20:45:30 UTC 2014


#30340: .htaccess bug
---------------------------+----------------------
 Reporter:  MarjWyatt      |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Rewrite Rules  |     Version:  4.0
 Severity:  normal         |  Resolution:  invalid
 Keywords:                 |     Focuses:
---------------------------+----------------------

Comment (by MarjWyatt):

 Thanks for the complete explanation of .htaccess rules haykayltduk.

 At the time I opened the report, I had also tried:
 I will say that this didn't work either:
 `Redirect 301 chocolate-covered-strawberries-edible-arrangements/
 http://www.someurl.com/blog/chocolate-covered-strawberries-arrangements/`

 My pal who is an SEO told me it was a flaw in generated .htaccess code.

 In between opening the ticket and your response, I did more digging into
 the proper method for redirecting on WordPress and came up with this
 solution:
 `RedirectMatch 301 ^/blog/chocolate-covered-strawberries-edible-
 arrangements.*$ http://www.womeurl.com/blog/chocolate-covered-
 strawberries-arrangements/`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30340#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list