This project has moved and is read-only. For the latest updates, please go here.

NB Store useage

Jun 11, 2013 at 6:39 PM
Hi Sacha,

Thanks for creating such a wonderful concept - for free too!

I'm not sure if this is possible but it would be awesome if URL Rewriter could clean up the "domainname.com/store/tabid/92/ProdID/68/CatID/1" of the nb store products page and instead have something cleaner/friendlier such as

domainname.com/store/category/productname

I also couldnt see an easy way to remove the .aspx extension from URLs - this is quite a handy feature as some indexers don't like that extension so much.
Jun 11, 2013 at 6:55 PM
Edited Jun 11, 2013 at 6:56 PM
Hi Andre,

Yes this already possible.

1)
You have to install the OpenUrlRewriter Core and also the NBstore provider.
And then ypou have automaticaly
domainname.com/store/category/productname

2)
for removing the .aspx extension

You have to set fileExtension="" in the web.config at the line :
<add name="OpenFriendlyUrl" type="Satrabel.Services.Url.FriendlyUrl.OpenFriendlyUrlProvider, Satrabel.OpenUrlRewriter" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="humanfriendly" fileExtension="" />
Regards,
Sacha
Jun 11, 2013 at 6:58 PM
Thanks for a fast reply Sacha!

Can you elaborate more on the first point? Where can I find the 2 items I need to install?

Are they not part of the default installations of each product?

Thanks a lot my friend
Jun 11, 2013 at 7:48 PM
Jun 11, 2013 at 8:51 PM
Thats great! It works well.

How do I change some of the auto generated rewrites? For instance I have a page called domain.com/PCs that has been rewritten to domain.com/PC-s

Which I don't want it to be called :-S

Thanks
Jun 11, 2013 at 8:54 PM
I spoke too soon - when browsing the catalogue of the site www.love4it.com it still showing the unwanted elements in the URL.
Jun 11, 2013 at 9:00 PM
Edited Jun 11, 2013 at 9:01 PM
Sorry to be a pain... another thing I have noticed is that the software is putting unwanted SEO.

For instance the Home page was called www.love4it.com/home.aspx now it's been prefixed with /computers even if you click "Home"

This is a really frustrating feature as I'm not sure where it's picking that up from - seems like it might have picked up one of the keywords in the page properties :-S
Jun 11, 2013 at 9:49 PM
1) To change auto rewrites of the page PCs to PC, you can put PC in the keywords field of the page.

This feature can be shitch on and off in the web.config (useKeyWords="true")
<add name="tabUrlRuleProvider" type="Satrabel.HttpModules.Provider.TabUrlRuleProvider, Satrabel.OpenUrlRewriter" useKeyWords="true" />
2) it still showing the unwanted elements in the URL
To be shure the rewrite urls are calculated, you force a recalculation with Tools, clear cache.
The Open Url Rewriter module witch is automaticaly added to Admin menu, can give you some moreinfo about it.
If you switch on the rewriter, i can look more in details at this.

3) now it's been prefixed with /computers even if you click "Home"
Yes for keywords, like explained in point 1)

Remarks :
1) Keywords field is not used by Google.

2) Its only the first keyword of the page keywords field witch is used for the url

I think you now have switch it of on your site ?
Jun 12, 2013 at 7:59 AM
Hi Andre,

Can you tell me witch version of dnn and nb store you use ?

I have no nb store in production with openurl rewriter at this moment.
I have just a demo on http://openurlrewriter.satrabel.be/en/modules/nb-store where you can see how its work.

I can help you to make it works, it is nice for me also to can check if everything work ok on your webshop.


Regards,
Sacha
Jun 12, 2013 at 8:30 AM
Latest version of DNN and latest version of nb store.

I can give you host access to the site? I'll PM you the details of login.

Thanks,

Andre
Jun 12, 2013 at 2:13 PM
Edited Jun 12, 2013 at 2:37 PM
Andre,

I have :

1) add the provider to web.config
<add name="nbstoreUrlRuleProvider" type="Satrabel.OpenUrlRewriter.NbStore.NbStoreUrlRuleProvider, Satrabel.OpenUrlRewriter.NbStore"/>

2) corrected the nb store provider
(bug in mono language sites)
(and better redirection for old category urls)

3) add pc, as first keyword of Pcs page to have the page nama as you want
You have to correct mayby some other keywords

4) Remove fileExtention :
add runAllManagedModulesForAllRequests="true" to web.config
and change fileExtension="" in web.config

<add name="OpenFriendlyUrl" type="Satrabel.Services.Url.FriendlyUrl.OpenFriendlyUrlProvider, Satrabel.OpenUrlRewriter" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="humanfriendly" fileExtension="" />

Regards,
Sacha
Jun 13, 2013 at 1:24 AM
Edited Jun 16, 2013 at 11:09 PM
Wow!!!! Exactly what I needed. I am using DNN 7.0.3 and NBStore latest version.
Jun 13, 2013 at 8:16 AM
Edited Jun 13, 2013 at 8:19 AM
Hi,

To resume:
  • you have top pages that corresponding to top categories in nb store
  • you have subpages with are linked to the urls of the sub categories of nb store
  • you want urls with domain/top-category/sub-category/product
Actualy the openurlrewriter provider for nb store do :
  • replace CatID/40 by category name (or seoname if exist)
  • replace ProdID/20 by product name (or seoname if exist)
  • replace ProdID/20/CatID/40 by category name / product name (or seoname if exist)
  • use dashes instead of underscores
  • it include only 1 level of category (it dont include parent categories) (this can be an enhancement of the provider)
I think this will be ok for your use case.

More in detail :
Those sub-categories were/are linking to the dynamic nbstore subcategory Url.
I think this will be ok
AND, I want them "mapped" to the sub-category pages, so that the above pages are reachable by flooring/sub-category STATIC DNN pages...
Do you meen that you want a real dnn page for each sub category (not a page linked to the nb store category dinamic link) ?
Also - you mentioned a corrected NBstore provider above. I downloaded and installed the nb provider today - was there an additional release/corrected version??
I dont release it yet. I will do it today i think.


I see that all you urls have trailing slashes. I openurlrewriter that work good with this. On my test envirements, i dont see this yet.
Do you know why ?
Maybe i have to manage this.

Regards,
Sacha
Jun 13, 2013 at 8:57 AM
Edited Jun 16, 2013 at 11:10 PM
You asked:
Do you meen that you want a real dnn page for each sub category (not a page linked to the nb store category dinamic link) ?
YES. This was the only way I was able to use the DDRMenu with the product categories without really getting into the code/menu provider. Do you know how to do this?
]will the new provider release fix eliminate the "catid/4" and make the underscores into dashes?

If so, sounds like OpenURLRewriter will work well - the parent category isn't that big of a deal if only 1 level of category is supported.

Is there a way to edit the list of rewritten urls - a config file or something? In case I wanted to modify a few manually instead of with existing rules?

Thank you SO much. I'm happy to test/provide feedback if needed in my environment.

Thank you again,
Jun 13, 2013 at 9:25 AM
Edited Jun 13, 2013 at 9:28 AM
This was the only way I was able to use the DDRMenu with the product categories without really getting into the code/menu provider. Do you know how to do this?
No.
But, i think you can also just make fake pages with links to nb store category links (like you do for Flooring sub pages).
Only think is , that you have to change all the urls of the pages after the url rewriter works fine with the new urls.
will the new provider release fix eliminate the "catid/4" and make the underscores into dashes?
yes (if you dont put underscores in seoname of nb store)
Is there a way to edit the list of rewritten urls - a config file or something? In case I wanted to modify a few manually instead of with existing rules?
At the moment, no.
You have only read only access on the open url rewriter page witch is automaticaly added to admin menu.
The best thing, is to adapt the seoname in nb store (of the categories or products).
You can only add custom redrection rules by your self.
On the trailing slashes - I added "/" to the fileextension= in the web.config. Not sure if that's the best way to do it or if it will cause problems, but it seemed to work.
It's not a problem i think, we have to see. But i dont see a benefit do add "/", It make the url only a little bit harder to read, i think.

Sacha
Jun 13, 2013 at 9:38 AM
The corrected nb store provider for mono language web sites is online

NB Store Provider 1.2.1
Jun 13, 2013 at 10:58 AM
Edited Jun 13, 2013 at 11:06 AM
sachatrauwaen wrote:
Andre,

I have :

1) add the provider to web.config
<add name="nbstoreUrlRuleProvider" type="Satrabel.OpenUrlRewriter.NbStore.NbStoreUrlRuleProvider, Satrabel.OpenUrlRewriter.NbStore"/>

2) corrected the nb store provider
(bug in mono language sites)
(and better redirection for old category urls)

3) add pc, as first keyword of Pcs page to have the page nama as you want
You have to correct mayby some other keywords

4) Remove fileExtention :
add runAllManagedModulesForAllRequests="true" to web.config
and change fileExtension="" in web.config

<add name="OpenFriendlyUrl" type="Satrabel.Services.Url.FriendlyUrl.OpenFriendlyUrlProvider, Satrabel.OpenUrlRewriter" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlFormat="humanfriendly" fileExtension="" />

Regards,
Sacha
HI Sacha,

Thanks for all your hard work. One thing I have noticed is that it doubles some of the keywords in the URL this is a good example:

http://www.love4it.com/computer-accessories/computer-accessories/apple-magic-trackpad-wireless-bluetooth

Is there an easy way for it not to do this?

Thanks,

Andre
Jun 13, 2013 at 1:22 PM
Hi Andre,

Actualy :

Because nb store include catid in the url for your exemple, the url provider include the category in the url.

It's because the provider generates url mapping rules globaly for the whole site, not contextualy for a page.

I will have a look if i can change this, to make the provider interprete the page context with the settings of the product list module.

So a will not include the category in the url for the products of the category specified in the nb store module settings of the product list module.

Regards,
Sacha
Jun 13, 2013 at 4:11 PM
Hi Andre,
So a will not include the category in the url for the products of the category specified in the nb store module settings of the product list module.
I have change the provider to manage this depending on the productlist module settings (default category and cascading)

I already install it on your site.

It give also the benefit to enhance the standard sitemap.aspx with all categories and products urls.

http://www.love4it.com/sitemap.aspx

witch its also accessible at the more standard way, with xml extention :

http://www.love4it.com/sitemap.xml

Regards,
Sacha
Jun 16, 2013 at 11:07 PM
Hello! I just wanted to tell you that I installed the updated NBstore provider and everything is working perfectly!!! I am SO grateful to have found this module and I truly appreciate your work!
Shelly aka idahogrrl
Jun 17, 2013 at 8:23 AM
Hi,

Nice.

Can i mention your site here on codeplex ?

This give a good exemple for others.

Regards,
Sacha
Jun 17, 2013 at 6:49 PM

Yes you may – I posted it on the NBStore discussion list too.

http://bullettools.com/

Shelly

Jun 19, 2013 at 4:21 PM
Hi Sacha,

I've just purchased an SSL certificate for the site and in Site Settings enforced the SSL connections however whenever I browse HTTPS - I'm instantly redirected back to HTTP:

Is this because of the URL rewriting?

Your advice is greatly appreciated.

Andre
Jun 19, 2013 at 4:41 PM
Hi,

I don't test a https website yet.

But i dont see a raison for your case will happend that is depending on the rewriter.

Do you have activate SSL in the site settings and the page settings ?

On witch page is it activated ?

Regards,
Sacha
Jun 19, 2013 at 10:03 PM
I've forced it to use ssl and now it works - when done page by page. I never had to do this in other dnn installs. seems to work fine.

Thanks again for all your help
Jun 20, 2013 at 3:29 PM
Sacha,

One more thing I have just noticed is that when going to https://www.love4it.com/ it defaults to https://www.love4it.com/default.aspx automatically
It would be really nice if It were able to simply not show the "default.aspx" part. I've tried creating a custom rule but it doesnt help :-(

your expertise is much appreciated as always.

Andre
Jun 20, 2013 at 4:29 PM
Andre,

Some enhancements are possible on the open url rewriter on this area.

I can't see links to https://www.love4it.com/default.aspx

I see links to https://www.love4it.com/ and https://www.love4it.com/home

which is duplicate content, not good for seo.

At this moment, i will suggest you to put a canonical link on the header of the home page (page settings)

<link rel="canonical" href="http://www.love4it.com" />

So you tell search engines that all pages are the same and google index and shows only the canonical link page.

Regards,
Sacha
Jun 23, 2013 at 1:03 PM
Hi Sacha,

I'm trying to implement what you have done for me on love4it.com on another website - I have followed your instructions so far but not having success on the NB Store.

Would appreciate your help. Where can I find the updated NB Store Provider?
Jun 23, 2013 at 1:13 PM
Also is it possible to redirect the home page to just the domain name with nothing after the "/"

Thanks
Jun 23, 2013 at 1:23 PM
The latest version of nb_store provider is :

https://openurlrewriter.codeplex.com/releases/view/107979

Tell me wath gooing wrong.

Core rewriting or only the nb store rewriting ?

For the home page redirect, i will look at this and try to implement it in the future version.

Regards,
Sacha
Jun 23, 2013 at 2:03 PM
the site is www.dukesofdaisy.com

The nb store products aren't being re-written.

also when I add custom rules to rewrite www.dukesofdaisy.com/profiles to www.dukesofdaisy.com/rent-a-friend

it doesnt work
Jun 23, 2013 at 2:31 PM
It's working now with the updated provider installed.

but still - custom rules aren't working
Jun 23, 2013 at 3:40 PM
Hi,

The syntax is the same as in siteurls.config.

Here an exemple :

Url = .*/profiles
Redirect Destination = http://www.dukesofdaisy.com/rent-a-friend
Redirect Status = 302 or 301
Jun 23, 2013 at 5:26 PM
Hi,

I have tried as you suggested

and I get an 404 error...

I also tried using url= /profile and destination= /rent-a-friend
i tried url= ./profile and destination= ./rent-a-friend

I cleared the cache, and restarted application after each change

all of them give either 404 or runtime error.

Any other suggestions?
Jun 23, 2013 at 5:36 PM
Redirect Destination = must a full absolute url

Have you try this ?

Url = .*/profiles
Redirect Destination = http://www.dukesofdaisy.com/rent-a-friend
Jun 23, 2013 at 6:15 PM
HI Sacha,

THat is exactly what I tried and it does not work. I get a 404 error when I try to browse to http://www.dukesofdaisy.com/profiles

It would be great to have the URL redirect any 404 to the homepage or anywhere else
Jun 23, 2013 at 7:41 PM
Can you tell me exactly what you have written in "Url" and Redirect Destination ?
Jun 23, 2013 at 7:43 PM
URL: .*/profiles
Destination: http://www.dukesofdaisy.com/rent-a-friend

When I browse to http://www.dukesofdaisy.com/profiles I get a 404 error and no redirection.
Jun 23, 2013 at 9:16 PM
I can't see why it dont work.

Just have look if the rule is present in the url cache.

Or give me host access to the site, then i try to find the raison

Regards
Sacha
Jun 23, 2013 at 9:27 PM
I've PM'd you the details for access

thanks
Jun 23, 2013 at 11:14 PM
Hi Andre,

There was just a trailing space at the end of the url in the custom redirection.

I remove them, and it work fine now.

In next version, a remove them automatically.


Regards,
Sacha
Jun 23, 2013 at 11:43 PM
Thank you Sacha,

they now all work :-)

you must tell me where I can donate to this project.

Also noticed a product isn't properly rewriting at this link:

http://www.dukesofdaisy.com/rent-a-friend/rent-a-man/prodid/111/catid/2/rent_a_fit_friend

still shows "prodid" etc

Thanks
Jun 27, 2013 at 9:11 PM
Hi,

On witch page you have find this link ?
Jun 30, 2013 at 9:58 PM
Hi Sacha,

just by browsing the catalogue of the store, i then clicked on a link (this was a new product that was created). I noticed a lot of products show links like that when browsing pages of the store i.e I go to page 2 and click a product link and thats how they are displayed.

Thanks,

Andre
Jul 1, 2013 at 1:08 PM
Hi,

New product urls are generated only when you manually clear the cache.
Or after a delay depending on your host cache settings (between 20 min and 3 hours).

I browsing your catalog and can't find that kind of links.

Can you give me a concrete page url where i can find this kind of links ?

Regards,
Sacha