Page 1 of 1

Fixed Redirect with Friendly 404

Posted: Thu Jan 24, 2013 7:30 am
by RichWendrock
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?

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 5:42 am
by mazhar
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

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 7:51 am
by RichWendrock
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.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 8:50 am
by ForumsAdmin

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.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 9:05 am
by RichWendrock
Are you saying only AbleCommerce created links are redirectable?

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 9:19 am
by ForumsAdmin
I will confirm from the developers but I think URL redirection in AC7 will not support URLs with query parameters.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 9:29 am
by ForumsAdmin
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

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 9:43 am
by RichWendrock
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

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 10:35 am
by ForumsAdmin
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

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 11:22 am
by RichWendrock
I removed the / and still it does not redirect the link. Other redirects work.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 11:28 am
by ForumsAdmin
I recreated the same URL as yours locally and set the redirection as above. It worked without any problem.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 11:41 am
by RichWendrock
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.

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 12:04 pm
by RichWendrock
Which version are you running?

Re: Fixed Redirect with Friendly 404

Posted: Tue Apr 23, 2013 12:16 pm
by ForumsAdmin
AbleCommerce 7.0.7 build 14481