Page 1 of 1
URL Rewrite
Posted: Tue Aug 17, 2010 12:20 pm
by vn2479
Hello,
I am running Window IIS 7 server 2008 and AC 7. Window IIS 7 has its own URL Rewrite Module, not sure what AC 7 has to offer . Which is better to use? Thanks!
Re: URL Rewrite
Posted: Wed Aug 18, 2010 4:31 am
by mazhar
I don't know about IIS7 rewrite module but I would suggest to keep the one bundled with AbleCommerce out of the box.
Re: URL Rewrite
Posted: Wed Aug 18, 2010 1:25 pm
by AbleMods
mazhar wrote:but I would suggest to keep the one bundled with AbleCommerce out of the box.
What URL rewriter? We can modify how the URLs are built in AC7?
Re: URL Rewrite
Posted: Thu Aug 19, 2010 7:04 am
by jmestep
I know a couple of merchants that tried using the rewrite in IIS7 to redirect from cfm pages to aspx pages, but it didn't work nearly as well as Helicon rewrite.
Also, Able has a rewrite provider in 7.0.3 on.
http://wiki.ablecommerce.com/index.php/ ... ovider_API
Re: URL Rewrite
Posted: Thu Aug 19, 2010 8:32 am
by AbleMods
Hey thanks Judy, I didn't know that was there.
Have you ever done the rewrite API like that Wiki before? Is it fairly straightforward?
Re: URL Rewrite
Posted: Thu Aug 19, 2010 9:02 am
by vn2479
Thanks for heads up! I'll give AC7 URL Rewrite a try. Question. Are there any resources on here on how to write custom rewrite rules and 301 redirect on multiple pages? Thanks, again!
Re: URL Rewrite
Posted: Fri Aug 20, 2010 7:12 am
by jmestep
Joe,
I haven't done it because I haven't had a compelling reason- in other word's, no one has wanted to pay for it and I've got too much to do to have time to experiment!
Re: URL Rewrite
Posted: Sun Aug 22, 2010 11:44 pm
by mazhar
vn2479 wrote:Thanks for heads up! I'll give AC7 URL Rewrite a try. Question. Are there any resources on here on how to write custom rewrite rules and 301 redirect on multiple pages? Thanks, again!
Read following topic about rewrites
http://wiki.ablecommerce.com/index.php/ ... ovider_API
Read following topic about 301 redirects
http://wiki.ablecommerce.com/index.php/ ... leCommerce
Re: URL Rewrite
Posted: Tue Aug 24, 2010 1:45 pm
by AbleMods
Ok, I gave this a try but it's just not working for me ....
I added the reference to CommerceBuilder - no biggie.
I compiled the DefaultProvider.vb and the DLL goes into the /Bin/ folder as it should.
I restarted IIS each time after re-compiling.
I can see the store URL's now have -VB- in them, so I know the sample is re-working the URLs.
But I keep keeping page-not-found even with the smallest change to the code like this:
Code: Select all
Case CatalogNodeType.Product
Return String.Format("~/{1}-VB-P{0}.aspx", nodeId, SanitizeName(name))
to:
Code: Select all
Case CatalogNodeType.Product
Return String.Format("~/{1}-VB-P{0}-JOE.aspx", nodeId, SanitizeName(name))
The links build correctly - I can hover them and see the -JOE has been added. But clicking them just throws a page-not-found error.
What am I missing here?? This is in 7.0.5 by the way.....