Hi,
I'm struggling with this also and searched the web where I found this thread.
When I do not have friendly url turned on, my FormIt redirects just fine. Once I turn on the friendly url, the redirect and emails no longer work. Upon submission, nothing happens and all the form fields return blanks as if the page was just refreshed.
I've tried dutchwebworks suggestion in changing the last paramenter of makeURL from 'full' to 'abs', but no luck on getting the redirect or emai to work.
I am currently using ModX revolution 2.1.3 and FormIt 2.0.2
This is my FormIt code:
[[!FormIt?
&customValidators=`validateEmail`
&hooks=`spam,email,FormItAutoResponder`,redirect
&emailTpl=`sentEmailTpl2`
&emailSubject=`Contact form submission`
&emailTo=`[email protected]`
&emailFrom=`Gallery`
&validate=`contact_name:required:minLength=`2`, contact_email:required:svalidEmail, contact_message:required`
&fiarTpl=`cautoResponseTpl`
&fiarSubject=`Thank You for Contacting Us`
&fiarToField=`contact_email`
&fiarFromName=`Gallery Website`
&redirectTo=`7`
]]
This is my .htaccess code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^sub\.domain\.com [NC]
RewriteRule (.*) http://sub.domain.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Any help is appreciated, I really want friendly urls on and need FormIt to work properly.
Thanks much!