WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
IIs pretty permalinks with 404-redirect (1 post)

  1. writecraft
    Member
    Posted 4 years ago #

    If you're having trouble sending email from IIs installation using pretty permalinks and 404-redirect, try this:

    modify /includes/classes.php:

    below: function form_html() {
    add: global $post;

    below: $url = wpcf7_get_request_uri();
    add:
    $title = the_title();
    $url = str_replace($title.'/', '/wordpress/index.php?page_id='.$post->ID.'', $url);

    Replace /wordpress/ with the name of the folder where WordPress is installed. This replaces the permalink with index.php and the post ID.

    http://wordpress.org/extend/plugins/contact-form-7/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by writecraft
  • This topic is not a support question
  • WordPress version: 3.0