Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Search Engine Optimisation
 404 redirect to parent category
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pete.gardner
Starting Member

9 Posts

Posted - November 24 2016 :  17:25:43  Show Profile  Reply with Quote
I''m thinking of adding web.config to redirect error 404 of my old produck link to parent category. For example:

product A, it''s under category A, is possible to redirect product A (extended) to this product category page?, so when product A removed and someone want to access the product extended page they will redirected to old product A category page

hope you can get what i mean

danielrichardson
VP-CART New User

Australia
188 Posts

Posted - December 05 2016 :  07:05:41  Show Profile  Reply with Quote
seems you need to manually add the old URL with new URL in web.config as example below:

<rewrite>
<rules>
<rule name="[RULE NAME]" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny" trackAllCaptures="false">
<add input="{HTTP_HOST}{REQUEST_URI}" pattern="[OLD URL]" />
</conditions>
<action type="Redirect" url="http://[NEW URL]/{R:1}" redirectType="Permanent"/>
</rule>
</rules>
</rewrite>
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - December 05 2016 :  11:17:33  Show Profile  Visit serjtankian's Homepage  Reply with Quote
seems you will need to manually add it one by one in web.config. FYR, i founf this article http://mike-ward.net/2013/04/24/creating-custom-configuration-sections-in-web-config/



*peace - serj*
Go to Top of Page

danielrichardson
VP-CART New User

Australia
188 Posts

Posted - December 23 2016 :  04:42:43  Show Profile  Reply with Quote
should be long rule Serj?
Go to Top of Page

serjtankian
VP-CART Super User

Armenia
378 Posts

Posted - December 23 2016 :  12:42:26  Show Profile  Visit serjtankian's Homepage  Reply with Quote
i''m not good in coding, but what do you think if creating asp code to handle this? im not sure how to this but i think it''s possible

any thought?



*peace - serj*
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00