WordPress.org

Support

Support » Plugins and Hacks » Custom Contact Forms with redirect code

Custom Contact Forms with redirect code

  • I have this code to redirect links from example.com/about.php to example.com/about/. This code works great, but the forms aren’t submitting. What should I be excluding so that the forms can be submitted.

    RewriteCond %{THE_REQUEST} ^(GET|HEAD|POST)\ /(.*)\.php($|\ )
    RewriteCond %{REQUEST_URI} !wp-login
    RewriteRule ^ /%2/ [L,R=301]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} ^/(.*?)/?$
    RewriteCond %{DOCUMENT_ROOT}/%1.php -f
    RewriteRule ^ /%1.php [L]
  • The topic ‘Custom Contact Forms with redirect code’ is closed to new replies.