The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. writecraft
    Posted 6 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();
    $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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

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