Support » Fixing WordPress » Rewrite rule doesn't work

  • I’m trying to create a rewrite rule to implement a function in a plugin, but it’s not working, anyone can check what is going wrong here?

    This is the rewrite rule that’s working in other sites.

    RewriteRule ^/thumb/([\d]+)?x([\d]+)?/(.*)$ /timthumb.php?src=$3&w=$1&h=$2 [QSA,L]

    I’m trying to implement the same idea but using the Rewrite API to send this link to a plugin inside my theme. But it doesn’t work. I’m flushing the rewrite rules.

    add_rewrite_rule('^/thumb/([\d]+)?x([\d]+)?/(.*)$', '/wp-content/themes/framework/inc/timthumb.php?src=$matches[3]&w=$matches[1]&h=$matches[2]','top');

  • The topic ‘Rewrite rule doesn't work’ is closed to new replies.