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
 Redirect SEO Friendly Cat Page
Author « Topic »  

Paradise
Ecommerce Template Guru

USA
1602 Posts

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

Posted - 12/03/2018 :  09:18:11  
Is it possible to redirect SEO Friendly URLS of the Cat Pages?

/products/RJC-Robert-J-Clancey-Aloha-Hawaiian-Shirts

Mark
Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

Andy
ECT Moderator

95440 Posts

Posted - 12/03/2018 :  09:23:48  
Hi Mark

Not sure what you need there - can you explain a bit more?

Andy

Please feel free to review / rate our software

Paradise
Ecommerce Template Guru

USA
1602 Posts

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

Posted - 12/03/2018 :  09:26:39  
Google is indexing a cat page for a keyword instead of the main page or product page, so I want to delete the cats and redirect them if possible to the product page.

This is the cat page I want to redirect to the product page.

https://www.paradiseclothingco.com/products/RJC-Robert-J-Clancey-Aloha-Hawaiian-Shirts

Mark
Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

Andy
ECT Moderator

95440 Posts

Posted - 12/03/2018 :  09:33:35  
So you want to set up a 301 redirect from one page to another? If so, you can do that via the web.config file, there's an overview with examples here https://www.bowlerhat.co.uk/301-redirects-for-seo-from-windows-server-iis

Andy

Please feel free to review / rate our software

Paradise
Ecommerce Template Guru

USA
1602 Posts

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

Posted - 12/03/2018 :  12:26:29  
I have added to the webconfig but it doesn't seem to be working, it just pulls up all products.

Mark
Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

Andy
ECT Moderator

95440 Posts

Posted - 12/03/2018 :  12:59:49  
What did you add? The order of rules may be an issue.

Andy

Please feel free to review / rate our software

Paradise
Ecommerce Template Guru

USA
1602 Posts

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

Posted - 12/03/2018 :  13:11:22  
<configuration>
<system.webServer>
<rewrite>
<rewriteMaps>
<rewriteMap name="StaticRedirects">
<add key="/products/RJC-Robert-J-Clancey-Aloha-Hawaiian-Shirts" value="/products/Mens-Hawaiian-Shirts-Clothing?scri=9" />

Further down I have these additions:

<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="All Manufacturer Match" stopProcessing="true">
<match url="^manufacturer/?$" />
<action type="Rewrite" url="categories.asp?man=all" />
</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" />
<add input="{URL}" pattern="\.txt" negate="true" />
<add input="{URL}" pattern="\.pdf" negate="true" />
<add input="{URL}" pattern="\.jpg" negate="true" />
<add input="{URL}" pattern="\.html" negate="true" />
<add input="{URL}" pattern="\.gif" negate="true" />
<add input="{URL}" pattern="\.png" negate="true" />
<add input="{URL}" pattern="\.xml" negate="true" />
</conditions>
<action type="Rewrite" url="proddetail.asp?prod={UrlEncode:{R:1}}" />
</rule>
<rule name="StaticRedirects" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{StaticRedirects:{REQUEST_URI}}" pattern="(.+)" />
</conditions>
<action type="Redirect" url="https://www.paradiseclothingco.com{C:1}" appendQueryString="false" redirectType="Permanent" />
</rule>

Mark
Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

Andy
ECT Moderator

95440 Posts

Posted - 12/04/2018 :  00:09:06  
This isn't my field of expertise really but did you try adding your new rule after the existing ones?

Andy

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