# Form not Redirecting to URL after Successful submit (Please Wait)

**URL:** <https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986>\
**Category:** General Discussion\
**Created:** [September 7, 2020, 7:24pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986 "2020-09-07T19:24:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 7, 2020, 7:24pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/1 "2020-09-07T19:24:04Z")

</div>

I embedded the form on my WordPress site and set it up to redirect to a thank you page on the same WordPress site. BUT it doesn’t redirect

On Mautic Preview, it redirects OK  
On WP, it just hangs on Please Wait  
But the form contact actually goes through to Mautic segment where I set it to go to  
HERE is the form (its a click to pop form - the \>\>\>CLICK HERE \<\<\< at the bottom of the page) [[https://single-parent.club/reading-head-start-review](https://single-parent.club/reading-head-start-review)]  
Here is the thank you page where its suppose to redirect [[https://single-parent.club/thank-you-reading-head-start/](https://single-parent.club/thank-you-reading-head-start/)]

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [September 8, 2020, 12:33pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/2 "2020-09-08T12:33:40Z")

</div>

On your site im getting a CORS error:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/1/180113c39e15b2a5ec2de71c9f047f4c50de85d6.png)

Check that you have your site listed in Mautic’s CORS settings

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 8, 2020, 1:11pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/3 "2020-09-08T13:11:34Z")

</div>

I have just done that. I have added my site to CORS,  
But its still not working. Still stuck on Please wait. ANy further help?

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [September 8, 2020, 1:26pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/4 "2020-09-08T13:26:28Z")

</div>

Make sure to add all versions of site (with and without www and https) to CORS setting  
If this doesnt work, Open the htaccess file in the root of Mautic installation and add this line:  
Header always unset X-Frame-Options

Close the file and restart the webserver

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 8, 2020, 1:55pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/5 "2020-09-08T13:55:37Z")

</div>

Adding all the variables to CORS didnt work.  
Possible to guide me where exactly to add the text?  
There are 126 lines and I am not sure where exactly to place it

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 9, 2020, 9:34am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/6 "2020-09-09T09:34:41Z")

</div>

I noticed, you have Wordress installed on this server / domain.  
Do you have Wordfence plugin installed by chance or any other “protective” measure?  
That could mess with your Mautic.  
Joey

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 9, 2020, 10:10am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/7 "2020-09-09T10:10:25Z")

</div>

I dont have any such plugins. Here is a list of plugins that comes close to what you think:  
Akismet Anti-Spam  
Disable Comments  
W3 Total Cache

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 9, 2020, 10:18am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/8 "2020-09-09T10:18:46Z")

</div>

I have seen many people with same error solved it by adding Header always unset X-Frame-Options to htaccess as suggested by @OmerGafny  
My problem is I dont know where to add it. The htaccess file has 126 lines and i dont know where exactly to add it

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [September 9, 2020, 10:45am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/9 "2020-09-09T10:45:25Z")

</div>

hi @dannyogolo  
Try to place it in the

IfModule mod\_header.c

section of the htaccess

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 9, 2020, 10:48am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/10 "2020-09-09T10:48:56Z")

</div>

Is this correct @OmerGafny ?

 RewriteEngine On

```
# Set Authorization header for OAuth1a for when php is running under fcgi
RewriteCond %{HTTP:Authorization} .+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Determine the RewriteBase automatically and set it as environment variable.
# If you are using Apache aliases to do mass virtual hosting or installed the
# project in a subdirectory, the base path will be prepended to allow proper
# resolution of the app.php file and to redirect to the correct URI. It will
# work in environments without path prefix as well, providing a safe, one-size
# fits all solution. But as you do not need it in this case, you can comment
# the following 2 lines to eliminate the overhead.
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
RewriteRule ^(.*) - [E=BASE:%1]

# Redirect to URI without front controller to prevent duplicate content
# (with and without `/app.php`). Only do this redirect on the initial
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an
# endless redirect loop (request -> rewrite to front controller ->
# redirect -> request -> ...).
# So in case you get a "too many redirects" error or you always get redirected
# to the start page because your Apache does not expose the REDIRECT_STATUS
# environment variable, you have 2 choices:
# - disable this feature by commenting the following 2 lines or
# - use Apache >= 2.3.9 and replace all L flags by END flags and remove the
# following RewriteCond (best solution)
# header always unset X-Frame-Options
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]

# If the requested filename exists, simply serve it.
# We only want to let Apache serve files and not directories.
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .? - [L]

# Rewrite all other queries to the front controller.
RewriteRule .? %{ENV:BASE}/index.php [L]

```

If its not, kindly tell me where exactly within this place you pointed out.

Also, How do I Restart the Server?

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [September 9, 2020, 11:36am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/11 "2020-09-09T11:36:03Z")

</div>

I think this is the location.  
If you have Apache, you restart it with:  
sudo service apache2 restart

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 9, 2020, 11:41am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/12 "2020-09-09T11:41:32Z")

</div>

I did the commenting  
My hosting support did the Apache restart for me

But still hanging on PLEASE WAIT

---

<div class="post-metadata">

**Author:** ![OmerGafny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/omergafny/32/1759_2.png) [@OmerGafny](https://forum.mautic.org/u/OmerGafny)\
**Post date:** [September 9, 2020, 11:56am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/13 "2020-09-09T11:56:14Z")

</div>

Ok, if youre on shared hosting, i would suggest also bring this up with them. Maybe its a firewall issue

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 9, 2020, 2:14pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/14 "2020-09-09T14:14:27Z")

</div>

I got some assistance from Hosting support, but the problem is still there.  
He has checked and according to him the server Firewall is not blocking the form.  
But it still hangs with the current set of directives added to the .htaccess files.

I am still eager for further assistance

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 10, 2020, 9:57pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/15 "2020-09-10T21:57:01Z")

</div>

Any more ideas plsssss i am still stuck here ?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 11, 2020, 2:04pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/16 "2020-09-11T14:04:09Z")

</div>

Hi, next logical step would be to check the logs. Can you see any entries in connection with this?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 11, 2020, 2:10pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/17 "2020-09-11T14:10:44Z")

</div>

Also: are you in control of [https://onemailserver.pro/](https://onemailserver.pro/) ? Is that on the same server? Is it possible, that the server where onemailserver.pro is has some WPfence protection?

Also: you are using a popup maker embedded into a wp site (which also uses ninjaforms) where you added the mautic form in the popup. Too many dependencies, maybe make it simple? Why the “click here”?

Unrelated comment: your images are could be better resolution. The own is especially pixelated.

---

<div class="post-metadata">

**Author:** ![dannyogolo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dannyogolo/32/627_2.png) [@dannyogolo](https://forum.mautic.org/u/dannyogolo)\
**Post date:** [September 11, 2020, 5:20pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/18 "2020-09-11T17:20:18Z")

</div>

Which logs? WordPress or Mautic?  
If I know what to look out for, then I will check.

About onemailserver, YES I am in control. that is where i installed mautic which serves all my websites.  
It is on the same shared hosting with namecheap.

As it is now, the site in question is:  
a WordPress site  
with Popupmaker plugin  
the form inside the popup plugin is mautic form  
Yes, I have Ninja form on the same site (in fact I was using Ninja form on other popups and they are still working, but after a wordpress update, the plugin that connects the ninja form and mautic crashed and the owner is not updating it again. Old connections still work, but i cant setup new connections. SO due to that, I had to go back to use Mautic own form on this particular page/popup.

So you suggesting I just place the form straight without hiding it inside a popup?

---

<div class="post-metadata">

**Author:** ![jimkey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jimkey/32/3317_2.png) [@jimkey](https://forum.mautic.org/u/jimkey)\
**Post date:** [September 11, 2020, 9:33pm UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/19 "2020-09-11T21:33:06Z")

</div>

For Bitnamic Mautic 3.1 I had the same issue when I Inspect in Chrome.  
I had to add the http(s) sites to CORS as mentioned earlier. Also, I had to comment these two lines out in the httpd.conf then restart Apache. So it’s probably all this. You can do a recusive grep -R “X-Frame” \* I believe to find all files but it was just the httpd.conf I had to change.  
\*\*\*\* To fix modify httpd.conf and comment out these lines  
Header always setifempty X-Frame-Options SAMEORIGIN  
Header always merge X-Frame-Options SAMEORIGIN

* * *

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 12, 2020, 6:26am UTC](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986/20 "2020-09-12T06:26:21Z")

</div>

Hi,  
For logs go to your mautic folder /app/logs subfolder.  
Post it here, we can take a look and help.  
J

[Next page](https://forum.mautic.org/t/form-not-redirecting-to-url-after-successful-submit-please-wait/15986.md?page=2)
