DMXzone Mailer Support Product Page
Solved
form scripts seem to be disabled by htaccess file
Reported 02 May 2019 08:44:20
1
has this problem
02 May 2019 08:44:20 Bruce Wilkie posted:
Hi thereI've found that the form scripts appear to be disabled by the htaccess file when it's used to create search engine friendly urls on the site.
I tried using conditions to exclude all the dmxzone folders from the url rules in the htaccess file, but didn't fix the problem.
The 6 lines in my htaccess file are as follows:
prntscr.com/njesod
(sorry, I can't paste the code in here as I'm being blocked for some reason)
Any ideas how I can fix this?
thanks in advance
Bruce
Replies
Replied 04 May 2019 12:26:48
04 May 2019 12:26:48 Teodor Kuduschiev replied:
Hi Bruce,
It's not possible to use URL rewrite with App Connect.
If you need to do this, a routing (url rewrite) component is already available in Wappler, and it does exactly this: docs.wappler.io/t/url-rewriting-with-wappler/6254
It's not possible to use URL rewrite with App Connect.
If you need to do this, a routing (url rewrite) component is already available in Wappler, and it does exactly this: docs.wappler.io/t/url-rewriting-with-wappler/6254
Replied 04 May 2019 12:56:47
04 May 2019 12:56:47 Bruce Wilkie replied:
Hi Teodor
Do you mean it’s not possible at all, or that in its current form App Connect just prohibits it?
In other words, could I hire a developer to fix this problem?
If not then it sounds like I will have to tell my client that we need to rebuild his website from scratch.
Please tell me that this is fixable. It surely must be?
Bruce
Do you mean it’s not possible at all, or that in its current form App Connect just prohibits it?
In other words, could I hire a developer to fix this problem?
If not then it sounds like I will have to tell my client that we need to rebuild his website from scratch.
Please tell me that this is fixable. It surely must be?
Bruce
Replied 04 May 2019 12:58:10
04 May 2019 12:58:10 Bruce Wilkie replied:
Could you let me know what it is in App Connect that is stopping url rewriting?
Then hopefully I can find a solution somewhere
thanks
Bruce
Then hopefully I can find a solution somewhere
thanks
Bruce
Replied 07 May 2019 13:26:46
07 May 2019 13:26:46 Bruce Wilkie replied:
Hi Teodor
Is there another way we can create search engine friendly urls that works with App Connect, or does App Connect mean that there is no way for our websites to have search engine friendly urs?
Any help you can give would be appreciated.
thanks
Bruce
Is there another way we can create search engine friendly urls that works with App Connect, or does App Connect mean that there is no way for our websites to have search engine friendly urs?
Any help you can give would be appreciated.
thanks
Bruce
Replied 07 May 2019 13:31:15
07 May 2019 13:31:15 Teodor Kuduschiev replied:
You cannot use url rewrite with app connect. It will break any filters/urla params you have on the pages.
If your question is - can i have urls like: site.com/some-product-name instead of site.com/product.php?id=123 the answer is - no, you can't have this.
And don't worry, google is smart enough that it parses the urls and reads the content of the pages
If your question is - can i have urls like: site.com/some-product-name instead of site.com/product.php?id=123 the answer is - no, you can't have this.
And don't worry, google is smart enough that it parses the urls and reads the content of the pages
Replied 07 May 2019 13:43:41
07 May 2019 13:43:41 Bruce Wilkie replied:
Thanks Teodor
Unfortunately it's not my decision. My client has demanded search engine friendly urls, just like site.com/some-product-name so looks like I can't use App Connect
I'm Now testing the old DMX extension Smartmailer to see if I can get that working with the search engine friendly urls instead. Will that have the same issue do you think?
Unfortunately it's not my decision. My client has demanded search engine friendly urls, just like site.com/some-product-name so looks like I can't use App Connect
I'm Now testing the old DMX extension Smartmailer to see if I can get that working with the search engine friendly urls instead. Will that have the same issue do you think?
Replied 07 May 2019 13:53:36
07 May 2019 13:53:36 Teodor Kuduschiev replied:
What has smart mailer to do with the urls and/or App Connect? Smart Mailer is a mailer tool based on the old, deprecated server behaviors.
Replied 07 May 2019 13:59:02
07 May 2019 13:59:02 Bruce Wilkie replied:
I know. Since I can't use App Connect then all I can think of is to try Smartmailer instead to see if that will work with search engine friendly urls.
I'm desparate
I'm desparate
Replied 07 May 2019 14:03:51
07 May 2019 14:03:51 Teodor Kuduschiev replied:
But what are you going to use smart mailer for? Smart mailer sends emails ... it has noting to do with your URL?!
Replied 07 May 2019 14:07:01
07 May 2019 14:07:01 Bruce Wilkie replied:
That's what I'm trying to do. I'm trying to get DMX Zone Mailer to work with search engine friendly urls
That's why I posted this on the DMX Zone Mailer support page. Sorry, I thought I'd made that clear in the original post at the top here.
That's why I posted this on the DMX Zone Mailer support page. Sorry, I thought I'd made that clear in the original post at the top here.
Replied 07 May 2019 14:29:29
07 May 2019 14:29:29 Teodor Kuduschiev replied:
I don't understand what are you trying to achieve? How is the mailer supposed to work with URL rewrite? What exactly are you referring to?
Replied 07 May 2019 14:44:55
07 May 2019 14:44:55 Bruce Wilkie replied:
I'm using htaccess rewrite so that urls on my client's website display like this:
site.com/webpage-name/
rather than this:
site.com/webpage-name.htm
This works just fine with these rules I've added to htaccess file:
prntscr.com/nll68u
But adding those rules to the htaccess file is stopping DMXZone Mailer from working for some reason
If I upload that htaccess file then DMXZone Mailer doesn't work. When I click on the contact form's submit button, the browser goes to the page that the form action is linked to rather than running the script (eg site.com/dmxConnect/api/EnquiryForm.php)
I just need to be able to use a contact form on the website along with search engine friendly urls.
Bruce
If I delete the htaccess file then DMXZone Mailer works, but my client doesn't get search engine friendly urls
site.com/webpage-name/
rather than this:
site.com/webpage-name.htm
This works just fine with these rules I've added to htaccess file:
prntscr.com/nll68u
But adding those rules to the htaccess file is stopping DMXZone Mailer from working for some reason
If I upload that htaccess file then DMXZone Mailer doesn't work. When I click on the contact form's submit button, the browser goes to the page that the form action is linked to rather than running the script (eg site.com/dmxConnect/api/EnquiryForm.php)
I just need to be able to use a contact form on the website along with search engine friendly urls.
Bruce
If I delete the htaccess file then DMXZone Mailer works, but my client doesn't get search engine friendly urls
Replied 07 May 2019 14:48:22
07 May 2019 14:48:22 Teodor Kuduschiev replied:
Oh ... i thought you wanted to use URL rewrite with some URL parameters on your page ... to convert them form
site.com/product.php?id=123
to
site.com/product-name-here
Let me check your htaccess rules and i will get back to you.
site.com/product.php?id=123
to
site.com/product-name-here
Let me check your htaccess rules and i will get back to you.
Replied 07 May 2019 14:53:39
07 May 2019 14:53:39 Bruce Wilkie replied:
Thanks Teodor
Sorry I wasn't clearer at first
Bruce
Sorry I wasn't clearer at first
Bruce
Replied 08 May 2019 10:01:49
08 May 2019 10:01:49 Teodor Kuduschiev replied:
Please send me a link to your page, where i can check the problem - probably there are some js errors on the page, i need to check this.
Replied 08 May 2019 13:02:18
08 May 2019 13:02:18 Bruce Wilkie replied:
Hi Teodor
I’ve just uploaded a test page at fillworth.com/contact-test-02/
It’s set to send to my email address atm.
Have just sent a submission though and it’s sending the email but going to a blank screen at the same time so you have to use the back button to get back to the website.
Previous test forms I set up didn’t send the email but not sure at this stage if that was a different issue as I’ve tried many changes to things over the last week.
Hope this helps
Bruce
I’ve just uploaded a test page at fillworth.com/contact-test-02/
It’s set to send to my email address atm.
Have just sent a submission though and it’s sending the email but going to a blank screen at the same time so you have to use the back button to get back to the website.
Previous test forms I set up didn’t send the email but not sure at this stage if that was a different issue as I’ve tried many changes to things over the last week.
Hope this helps
Bruce
Replied 08 May 2019 13:46:26
08 May 2019 13:46:26 Teodor Kuduschiev replied:
Indeed there is a problem with your rewrite rules. It tries to add .html to the appconnect.js file which breaks the form.
Please move the app connect js AFTER your <base> tag in the page head:
<script type="text/javascript" src="dmxAppConnect/dmxAppConnect.js"></script>
Please move the app connect js AFTER your <base> tag in the page head:
<script type="text/javascript" src="dmxAppConnect/dmxAppConnect.js"></script>
Replied 08 May 2019 14:13:25
08 May 2019 14:13:25 Bruce Wilkie replied:
Thanks Teodor, that's fixed it.
Appreciate your help as always
Bruce
Appreciate your help as always
Bruce
Replied 08 May 2019 14:17:02
08 May 2019 14:17:02 Teodor Kuduschiev replied:
Great to hear this
BTW - you can take a look at Wappler, it offers much more advanced features like URL rewrite out of the box. Version 2 is coming in a couple of weeks! wappler.io
BTW - you can take a look at Wappler, it offers much more advanced features like URL rewrite out of the box. Version 2 is coming in a couple of weeks! wappler.io