pete.gardner
Starting Member
9 Posts |
Posted - November 24 2016 : 17:25:43
|
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 Super User
 
Australia
276 Posts |
Posted - December 05 2016 : 07:05:41
|
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> |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
|
danielrichardson
VP-CART Super User
 
Australia
276 Posts |
Posted - December 23 2016 : 04:42:43
|
should be long rule Serj? |
 |
|
serjtankian
VP-CART Super User
 
Armenia
378 Posts |
Posted - December 23 2016 : 12:42:26
|
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* |
 |
|
tomfor
Starting Member
7 Posts |
Posted - April 12 2021 : 01:40:03
|
quote: Originally posted by serjtankian
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 https://www.humphreysandsons.co.uk/ any thought?
*peace - serj*
If there are no other options, then by all means use this option. |
 |
|
|
Topic  |
|