01 март, 2012

WordPress add_rewrite_rule function not working as expected.

Are you using the add_rewrite_rule function to customize your URL/Permalinks? Make sure you use single quotes for the $rewrite parameter, otherwise the $matches[1] is parsed immediately and... will get lost! Took me few hours debugging and searching in the Internet to discover this myself.

Няма коментари: