Aricie
Intégrateur de vos solutions d'avenir
DNN Community Forums

Configuration Issues / Dubts with Friendlier URL

Sort:
You are not authorized to post a reply.
Page 1 of 41234 > >>
Author
Messages


Alberto - Informatica Veneta











New Member



Posts:




New Member



    Good day..

    I downloaded the trial version of Friendlier URL to evaluate the product.. I'm starting to understand how to build rewriting rules, and now it's working quite fine except for a few things:

    1) Catalook AdvCatName and ProductName

    since it's the trial version and I can't setup module/page rules, I'm trying to make the rewrite module to put product and/or category names in the main rule, that it's looking like this:

    Rewriting rule

    ${BASE_REPLACERULE_ROOT}${BASE_REPLACERULE_END}

    ${BASE_REPLACERULE_ROOT}

    [${Scheme}][${UserInfo}][${RootPath}][/${Lang}][/${TabPath,SubPath}][/${TabName}][/${AdvCatName}]

    ${BASE_REPLACERULE_END}

    [/${ControlKey}][/${Level,None}][/${List,None}][.${Extension}][?${QueryString,QueryStringValue}][#${Fragment,QueryStringFlag}]

    I would expect my urls to look something like "domain/language/page/advcategoryname" and "domain/language/page/productname", but I'm still getting CategoryId=X and ProductId=Y parameters...

    is this just because it's the trial version or is my rule wrong?

    Additionally, I would like to know if it is possible (at least with the licensed module) to have the product details to always open without the selected category name... because by now, if I open a product when I'm in a specified category, I have both the CategoryId and ProductId parameters.

    What I would like to avoid is having more than one url pointing at the same product, like "domain/shop/productname" and "domain/shop/category/productname".

    Last, but not least, I have the site in two languages (it and en)... will the url rewrite module understand if I access the advanced category by his localized name? for example, "shoes" and "scarpe" should both function in the respective language and actually "map" the correct category id.

    2) Strange redirect with language change

    on my site, I have some pages with subpages.. for one page under the Italian root (and only that one it seems), if I open one of the two child pages through a LinkClick ("domain/LinkClick.aspx?link=286&tabid=284&language=it-IT), it auto redirects me to domain/en/childpage, not mantaing the italian language..

    Additionally, if I try to manually open the url like domain/it/pagename, it gives a 404 error.

    This last issue also happens if I try to access any page from the english root, changing the language param to "it"; it seems like the rewriter module "built" the english link with the english page, doesn't allowing the parameter to be changed.

    Any idea on what this maight be?

    3) Is it possible to exclude a specific page name from the rewrite? my site is structured with the italian pages starting from the site root, and then I have an "english" page which serves as the root for the english part.

    In this way, I should remove the tabpath from the rewrite rule (I don't want to do that, because I have potentially duplicate names through my site), otherwise my urls will look like domain/en/english/page.. it's not that ugly, but neither properly nice :)

    For now, I think that this is all... if the issues/dubts I noticed can be solved, I think this module will fit all of my customer needs..

    If I can help in anyway, please make me know.

    Thank you in advance,

    Alberto



    Alberto - Informatica Veneta











    New Member



    Posts:




    New Member



      Hi everyone..

      More than a week has passed, think its more then 24 hours..

      I really need to know if the product will function correctly for my needs (see above post) on full version.. trial is not functioning correctly (or maybe I'm just mis-configuring the modules, but I can't know).

      I have the client breath on my neck, I hope to receive an answer as soon as possible.

      Kind regards,

      Alberto.



      samyb











      New Member



      Posts:




      New Member



        Hello Alberto,

        Sorry about the unacceptable delay; i completely missed the notification email for your question and i apologize sincerely.

        I'm currently setting up a Catalook store and FUP to try and answer your questions with hands-on feedback. I'll get back to you this afternoon as soon as i can answer your questions more precisely

        However, as a starter, i'd recommend checking the following:

        • did you load the Catalook provider in the default rule?
        • the Catalook provider has 3 rewriting fields: ProductName, CategoryName and AdvCatName; could you add the ProductName field in your rewriting rule: ${BASE_REPLACERULE_ROOT}[/${ProductName}]${BASE_REPLACERULE_END}
        • after saving your changes, clear the cache and start navigating your website again, you should see the product id rewritten

        I'll look into the rest of your questions right away



        Alberto - Informatica Veneta











        New Member



        Posts:




        New Member



          You are right, this delay is unacceptable, and I will NEVER forgive you...

          ok, now that the rage is over :)

          I'll try to do what you suggest, but I think that the problem is the fact that I'm still running a Trial module.. I have to look to be certain, but I think that I can't add the catalook provider, because the controls are disabled.

          What I needed to know, in fact, was if it was a trial-limitation, a mis-configuration, or a mis-functioning with my current site configuration.

          So, can I actually try this while in trial mode, or do I have to buy the license and everything should work?

          Thank you,

          Alberto



          samyb











          New Member



          Posts:




          New Member



            Hello again Antonio

            Indeed, the trial version of our module only gives the user a taste of how it works. However what you're asking about is configurable through the advanced options that are not available in the trial. Any grayed out options you see is due to the trial.


            To be quick, you can configure rewriting strategies on a module per module basis (the Module Specific Strategies tab), so that i have an item panel where only the ProductName is used, and a category selection menu where only the category name (or advanced category name) is rewritten.

            You can do the same tab by tab (the Tabs Specific Strategies tab in the interface), so if your item catalog lives on only one page, you can configure this page only to be rewritten.

            Finally, you can configure strategies to be applied only when some condition is satisfied, so you could setup specific rules based on your own rules (for exemple if the user adds a special key to the url for debug purposes); in your case, you could have a rewriting rule saying that whenever the url contains a ProductId, only the ProductName is taken into account. You can also set up conditions to take into account the en/english problem you described :)


            Regarding the translation question, from what i see the categories are not localized in Catalook, so scarpe and shoes would have different category id; the rewriter will pick the correct one.

            However (and this also answers your question about trying to access directly so some urls) FUP is not a classical url rewriter in the sense that it doesn't try to parse an unknown url into arguments; rather it is based on DNN's rewriting system, where the url must be processed by DNN in order to be rewritten.

            For example, when you access the root of your website, DNN will hand FUP some urls, saying "rewrite /Default.aspx?tabid=5 and /Default.aspx?tabid=6" and FUP will rewrite them as (for example) /Home.aspx and /Details.aspx. FUP will be then aware that whe a user asks for /Details.aspx, he should translate it back to /Default.aspx?tabid=6. That's what is in the Url Store of FUP, the mapping between the rewritten url and the original one.

            This system allows for very powerful manipulations of urls, but in exchange it cannot "guess" what you're meaning; it can only map an url back to the original values if it has already encountered the original values. That's what happens when you say that you tried to change the language to it directly in the url. For it to work UP must have encountered the italian url previously.


            I'm looking into the LinkClick problem, but i'm afraid what you describe is not a problem with rewriting. Could you give me more info as to how i can duplicate this behavior?

            I hope these answers will help you; If you need more details on some aspect of the configuration, don't heasitate to ask; i won't be caught off guard twice :)

            Best regards,

            Samy

            You are not authorized to post a reply.
            Page 1 of 41234 > >>