Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Next Page
Author « Topic »
Page: of 3

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  02:37:08  
Hi,

We have written some code for the web.config and we have added the extension="" to includes, however we get a page error on cart once we go there, is there another step we might be missing?

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  02:49:57  
Hi

Can you let us know what you have added to web.config and is it a page not found error you get on the cart page or something else?

On a related note if this is testing on a live site it might be better starting with a less important page like affiliate.asp rather than cart.asp

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  02:53:18  
Hi Andy,

Can I email you a zip of the file?

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  03:16:09  
Hi Andy,

OK, I removed the redirection for cart, I am guessing that there is some caching going on there and it will not work now, happened yesterday too, however I took your advice and tested on another page and it still does not work.

https://www.sleeprestfully.com/about.asp

[code]

<location path="about.asp">
<system.webServer>
<httpRedirect enabled="true" destination="https://www.sleeprestfully.com/about"
httpResponseStatus="Permanent" />
</system.webServer>
</location>

[/code]

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  04:18:05  
Can you try it with a store based page like affiliate.asp, orderstatus.asp or giftcertificate.asp and then use the same formatting you have in web.config for the product / category redirects?

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  04:33:36  
Will try, I will post later once tested.

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  04:35:58  
Same result...

https://www.sleeprestfully.com/orderstatus

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  05:41:34  
Are you using the same syntax that you used for the product / category extensionless URLs? Can you let us know what you have there now?

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  05:57:04  
Hi,

Same, let me copy / paste for you
Download the file here to look, the code I have shown is right at the bottom.

https://www.sleeprestfully.com/web.zip

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  06:13:09  
Can you upload that again as I get a file not found for the zip file?

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  06:21:18  
Hi,

Probably the redirection playing up :)

Here is a link to a Privnote, this link will only work once, so please copy and paste the code into something

Please do not click this link if you are not Andy :)

https://privnote.com/pvlpTCQ1#rfcumOj1k

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  06:31:20  
I've got the file and will take a look.

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  06:32:39  
Thanks Andy

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  07:20:56  
Try it like this, adding the following after <rules> in web.config

<rule name="Orderstatus Match" stopProcessing="true">
<match url="^orderstatus/" />
<conditions>
<add input="{UNENCODED_URL}" pattern="orderstatus/" />
</conditions>
<action type="Rewrite" url="orderstatus.asp" />
</rule>

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  07:45:38  
Hi,

let me try

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  07:53:05  
Tried it and still get the page error at the top.

404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable

I placed that code near the top within the others, is there a hierarchy or can I place that code above others?

<rules>
......

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  08:00:40  
If you put it immediately after <rules> then it will come before the catch-all proddetail redirection. In includes.asp make sure you have

extension="/"

and in orderstatus.asp add

<base href="http<% if request.servervariables("HTTPS")="on" then response.write "s"%>://www.yourstoreurl.com/" />

before your css file paths.

and that will give you a page of

https://www.sleeprestfully.com/orderstatus/

Andy

Please feel free to review / rate our software

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  08:15:45  
Hi,

Very odd, I have done all 3 changes and nothing works.
I wonder if this could be a server related issue, maybe I need to raise a ticket with them to investigate, when i check in Chrome, my default browser is get this URL with an error

https://www.sleeprestfully.com/orderstatus

When i check in Firefox or Edge i get this without a redirect

https://www.sleeprestfully.com/orderstatus.asp

This is very odd, because all the code is added and something should happen.

C4009
Ecommerce Template Expert

USA
612 Posts

Pre-sales questions only
(More Details...)

Posted - 06/14/2018 :  08:20:11  
Hi Andy,

I think I solved it

I removed the trailing / from the web.config code.

[code] <rule name="Orderstatus Match" stopProcessing="true">
<match url="^orderstatus[red]/[/red]" />
<conditions>
<add input="{UNENCODED_URL}" pattern="orderstatus[red]/[/red]" />
</conditions>
<action type="Rewrite" url="orderstatus.asp" />
</rule>[/code]

I thought that since we request this to be added from includes, I guess if I remove that from includes and left in on the code above it would work too. Let's hope this solves it..Thank you

Edited by - C4009 on 06/14/2018 08:20:26

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  08:20:40  
That set up works fine for me here. You may want to check with your host but the example I gave you is with the trailing slash so should look like this

https://www.sleeprestfully.com/orderstatus/

Andy

Please feel free to review / rate our software

Andy
ECT Moderator

95440 Posts

Posted - 06/14/2018 :  08:25:01  
Chrome was caching the page but your URL works fine for me now in Firefox.

Andy

Please feel free to review / rate our software
Page: of 3 « Topic »  
Next Page
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000