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
 All Forums
 Technical
 ASP (Windows server) versions
 Search Engine Friendly URL's
Author « Topic »  

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/27/2020 :  02:54:17  
Hi,

I've been working on our SEO since having our site redone and one of the things I've done is submit a sitemap to google however since doing this we have dropped percentage on the checking tool. The reason being given is our dynamic URL's. I have followed the steps on the following link. However when I upload the files it takes the site down and gives a config error.

https://www.ecommercetemplates.com/seo/search-engine-friendly-urls-asp.asp

Any help / advise would be much appreciated I've spent all week looking at it!!

Many thanks

Cheryl

Vince
Administrator

42470 Posts

Posted - 03/27/2020 :  03:55:13  
Hi Cheryl
Sorry to hear you are having problems but could you let me know what the error is when you upload the changes, and what the files are you are uploading.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/27/2020 :  04:32:12  
Hi Vince,

This is the error I get, when I load web.config to the server.

500.19 - Server error: Data for this file is configured improperly.
The requested page cannot be accessed because of a configuration error.

I am uploading the includes.asp, categories.asp, products.asp and the web.config.

Thanks

Cheryl

Vince
Administrator

42470 Posts

Posted - 03/27/2020 :  05:07:40  
Hi Cheryl
So this would be when you upload the web.config changes I imagine that you get this error, no? Can you let me know what you have in that file.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/27/2020 :  05:59:36  
Thanks Vince,

This is what I am uploading

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<modules>
<add name="HttpCacheModule" />
<add name="DynamicCompressionModule" />
<add name="StaticCompressionModule" />
</modules>
</system.webServer>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^irishplantsdirect.ie$" />
</conditions>
<action type="Redirect" url="http://www.irishplantsdirect.ie/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
<location path="specialoffers.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.irishplantsdirect.ie/specialoffers" httpResponseStatus="Permanent" />
</system.webServer>
</location>
<system.webServer>
<rewrite>
<rules>
<rule name="Categories Match" stopProcessing="true">
<match url="^category/([^/]*)/?$" />
<action type="Rewrite" url="categories.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Match" stopProcessing="true">
<match url="^products/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?man={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Detail Page Match" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{URL}" pattern="\.asp" negate="true" />
<add input="{URL}" pattern="\.css" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
</rules>
</rewrite>
</configuration>




C.SAXTON

Vince
Administrator

42470 Posts

Posted - 03/27/2020 :  08:48:24  
Hi Cheb
You already have a "rules" section so you needed to add the new rules to the current set of rules. Also, there was a missing </system.webServer> but try the one below that should be more like it. If you still have problems it's possible you don't have IIS URL Rewrite installed. That is available here...
https://www.iis.net/downloads/microsoft/url-rewrite
Most all hosts now add this by default however.

Vince

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<modules>
<add name="HttpCacheModule" />
<add name="DynamicCompressionModule" />
<add name="StaticCompressionModule" />
</modules>
<rewrite>
<rules>
<rule name="Redirect to WWW" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^irishplantsdirect.ie$" />
</conditions>
<action type="Redirect" url="http://www.irishplantsdirect.ie/{R:0}" redirectType="Permanent" />
</rule>
<rule name="Categories Match" stopProcessing="true">
<match url="^category/([^/]*)/?$" />
<action type="Rewrite" url="categories.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Match" stopProcessing="true">
<match url="^products/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?cat={UrlEncode:{R:1}}" />
</rule>
<rule name="Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/([^/]*)/?$" />
<action type="Rewrite" url="products.asp?man={UrlEncode:{R:1}}" />
</rule>
<rule name="Product Detail Page Match" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{URL}" pattern="\.asp" negate="true" />
<add input="{URL}" pattern="\.css" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<location path="specialoffers.asp">
<system.webServer>
<httpRedirect enabled="true" destination="http://www.irishplantsdirect.ie/specialoffers" httpResponseStatus="Permanent" />
</system.webServer>
</location>
</configuration>

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/27/2020 :  09:03:28  
Thanks for that Vince,

I have that uploaded. Should the URL's now automatically convert to the product and category names? I don't see any difference. Or do I have to do something else (apart from upload the files, I already got the host to do the rewrite on monday).

Cheb

C.SAXTON

Vince
Administrator

42470 Posts

Posted - 03/28/2020 :  03:55:58  
Hi Cheb
If you've uploaded the changes to your includes.asp file then then cart links that are generated should be SEO style URL's. If you've uploaded this web.config change then when you get one of these SEO URL's in the address bar it should get interpreted properly so you see the correct product / category etc. There is another parameter which is...
seourlsthrow301=TRUE
If you set that in your includes.asp then a regular URL like...
proddetail.asp?prod=mytestprod
...will automatically forward to the SEO style URL. But only set this once you have checked things are working properly.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/30/2020 :  03:38:10  
Thanks Vince,

The site seems to be working properly, I have checked it and the pages are returning 200 message. So when I upload seourlsthrow301=TRUE I will physically see a different URL?

Fingers crossed!! Many thanks

Cheb

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/31/2020 :  03:20:45  
Morning Vince,

I think I was wrong yesterday saying it was all ok :-( Some of our pages are throwing a 443 error up https://www.irishplantsdirect.ie:443/Templates/return.asp .

Would you have any idea why? I have a few pages like this.

Many thanks in advance

Vince
Administrator

42470 Posts

Posted - 03/31/2020 :  03:47:44  
Hi Cheb
Is this one of your links? This page should be https://www.irishplantsdirect.ie/return.asp no? Where is the link coming from and who is generating it?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Cheb
Starting Member

Ireland
25 Posts

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

Posted - 03/31/2020 :  04:07:18  
It should be I don't know why its suddenly pulling from templates

C.SAXTON
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000