I've got a perfectly good (to date) setup of wordpress of for any new website. The beautiful web addresses will work not surprisingly.

I've 1 dynamic page that loads content with respect to the querystring:


If only to create this URL "pretty" too but every-time I customize the .htaccess no changes are created. Attempted everything and researched anything else - last measure. Basically might get the next to operate i quickly could be happy.

I have to result in the URL seem like.


Adding this to the .htaccess breaks the entire website.

RewriteRule /dynamic/(.*)/(.*)/(.*)/(.*)/$ /dynamic?$1=$2&$3=$4

What shall we be held missing.

Thanks ahead of time


Don't add the rewrite rule for your .htaccess file. WordPress handles that apply for you, so use built-in features whenever feasible.

WordPress really includes a somewhat advanced rewrite engine that ships standard - and it is pluggable similar to the relaxation from the platform.

The secret, though, is dealing with it. You will need to register your RegEx so WordPress knows what types of strings to complement (i.e dynamic/location/(.*)/code/(.*) => /dynamic?$loc=$1&code=$2). Then you will want to setup the page and script around the back finish to handle submission.

For the same example, consider the answer I received to parsing custom Web addresses having a custom publish type over on WordPress Answers. Stretching this, you will need to setup code like the following (note: untested!!!):

add_action('init', 'add_my_rewrite');

function add_my_rewrite() {
    global $wp_rewrite;
    $wp_rewrite->flush_rules(false);  // This should really be done in a plugin activation

This should add the rewrite structure for your .htaccess file instantly.