Fixed Redirect with Friendly 404

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Fixed Redirect with Friendly 404

Post by RichWendrock » Thu Jan 24, 2013 7:30 am

Is there anyway to make the Fixed Redirect to pages in its list work with a Friendly 404 Page Not Found if the missing page is not in the list?
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5082
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Fixed Redirect with Friendly 404

Post by mazhar » Tue Apr 23, 2013 5:42 am

Lets suppose the missing page URL is yourstore.com/products/myproduct.aspx and you wan to redirect to yourstore.com/page-404.aspx
In order to do redirect go to Administration > Configure > SEO > Fixed Redirects and then add an entry with Request Path set to products/myproduct.aspx and Redirect To set to page-404.aspx

Now if you try to open yourstore.com/products/myproduct.aspx in browser it will redirect you to page-404.aspx

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 7:51 am

I am having a problem with broken links to a category we deleted recently. I have not been able to identify where it is coming from. My Assumtion is the link is coming in from the search engines. Here is the link that fails
http://www.hillcountrycustomcycles.com/ ... goryId=185

I tried your example and setup /BikeHome.aspx?BikeCatId=185&CategoryId=185 to redirect to /default.aspx?b=0. Unfortunately the link fails.
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 8:50 am

Code: Select all

www.hillcountrycustomcycles.com/BikeHome.aspx?BikeCatId=185&CategoryId=185
This URL is not re-written and it will not be intercepted by the URL rewriter.

Probably this URL is cached somewhere by search engines and is being accessed by Search Engines.

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 9:05 am

Are you saying only AbleCommerce created links are redirectable?
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 9:19 am

I will confirm from the developers but I think URL redirection in AC7 will not support URLs with query parameters.

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 9:29 am

query parameter part of the URL is ignored when considering redirects.

If this mapping is defined

Code: Select all

testpage.aspx  ---> newpage.aspx 
All of the following incoming URLs will go to newpage.aspx

Code: Select all

/testpage.aspx?CatId=123
/testpage.aspx?CategoryId=222&ProductId=222
/testpage.aspx?paramx=10&paramy=20
/testpage.aspx?x=y

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 9:43 am

That is not what I am seeing. I setup the links as you instruct and the link is not redirected.

Here is the link
http://www.hillcountrycustomcycles.com/ ... P2344.aspx

I setup /Copy-of-Widow-Eclipse-Front-Rear-Wheel-Tire-Package-wABS-P2344.aspx -> /Default.aspx
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 10:35 am

Please remove the '/' from the mapping.
Map it like this

Code: Select all

Copy-of-Widow-Eclipse-Front-Rear-Wheel-Tire-Package-wABS-P2344.aspx  ----> Default.aspx

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 11:22 am

I removed the / and still it does not redirect the link. Other redirects work.
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 11:28 am

I recreated the same URL as yours locally and set the redirection as above. It worked without any problem.

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 11:41 am

Well, I cannot explain why it is working for you and not for me. I cleared the cache in FireFox with no affect. I opened Chrome and same thing. I tried IE 10 and same thing. I even tried Safari and there is no redirect.
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
RichWendrock
Commander (CMDR)
Commander (CMDR)
Posts: 134
Joined: Sat Apr 05, 2008 12:55 am
Location: Austin Texas
Contact:

Re: Fixed Redirect with Friendly 404

Post by RichWendrock » Tue Apr 23, 2013 12:04 pm

Which version are you running?
Regards,
Richard

http://www.TheHomePageStore.com

AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634

User avatar
ForumsAdmin
AbleCommerce Moderator
AbleCommerce Moderator
Posts: 399
Joined: Wed Mar 13, 2013 7:19 am

Re: Fixed Redirect with Friendly 404

Post by ForumsAdmin » Tue Apr 23, 2013 12:16 pm

AbleCommerce 7.0.7 build 14481

Post Reply