Rank: Member
Joined: 4/29/2010(UTC) Posts: 256
Thanks: 4 times Was thanked: 11 time(s) in 10 post(s)
|
I have a category which will be discontinued
/Departments/my-category.aspx
I wish to return a 410 Gone response from the server. Whats the best way of going about this without resorting to URL Rewrite (which is not installed). BV commerce version 5.8
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,396 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 164 time(s) in 159 post(s)
|
The first thought that comes to mind is creating a new category template. Then in the code-behind of the new template you can set the status code of the request to 410. Going forward you can assign this template to any discontinued category. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
 1 user thanked Aaron for this useful post.
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,396 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 164 time(s) in 159 post(s)
|
The more important question...why are they running 5.8??? :) |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Rank: Member
Joined: 4/29/2010(UTC) Posts: 256
Thanks: 4 times Was thanked: 11 time(s) in 10 post(s)
|
Excellent idea Aaron thank you, I went down the path of thinking about url redirection to the default 410 error page but this will do just fine. As for 5.8 they want to keep the old Url structure. Edited by user Thursday, August 27, 2015 6:28:04 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration
Joined: 4/2/2004(UTC) Posts: 2,396 ![United States United States]() Location: Hummelstown, PA Thanks: 6 times Was thanked: 164 time(s) in 159 post(s)
|
Originally Posted by: Steve95  As for 5.8 they want to keep the old Url structure. The URL structure hasn't changed, even in 2015. We've been very careful about such things. |
Aaron Sherrick BV Commerce Toll-free 888-665-8637 - Int'l +1 717-220-0012 |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.