• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Steve95
#1 Posted : Thursday, August 27, 2015 4:09:59 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 253

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
Aaron
#2 Posted : Thursday, August 27, 2015 6:17:22 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 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.
Aaron
#3 Posted : Thursday, August 27, 2015 6:18:32 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 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
Steve95
#4 Posted : Thursday, August 27, 2015 6:24:00 AM(UTC)
Steve95

Rank: Member

Joined: 4/29/2010(UTC)
Posts: 253

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

Aaron
#5 Posted : Thursday, August 27, 2015 1:21:38 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Originally Posted by: Steve95 Go to Quoted Post
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012