Pages

Tuesday, November 6, 2012

.htacess rewrite rule translation example

RewriteRule  ^builder/([0-9]*)/([0-9]*)/([a-z]*)/([a-z]*)$   wp_content/plugins/career/mkr.php?page_id=$1&r_id=$2&user=$3&rtype=$4 [L]


This rule means that is we encounter a url which starts with builder followed by an integer again followed by an integer then an alphabet then an alphabet and then end convert it to the url after space for example

A Url

domain.com/builder/3/6/alpha/beta will be converted to

domain.com/wp_content/plugins/career/mkr.php?page_id=3&r_id=6&user=alpha&rtype=beta

That's how translation occurs

1 comment:

  1. Good article

    https://wordpress-special-plugin.blogspot.co.id

    ReplyDelete