Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Mr A 216 posts 278 karma points
    Nov 07, 2012 @ 14:44
    Mr A
    0

    UrlRewriting Issue in razor store

     Hi Soren 

     

      I am having some issue with managing hostname my tree is like:

     

    •   Site
    • Home
    • Contact 
    • Service
    • testimonials
    • Shop
    • catalog
    • product
    • cart
    • Address.....
    • Search
    • Email
    • ....
    • News

    The issue is when i set the shop hostname to homepage, the homepage is always redirected to shop page , i want shop and home page separate , when 

    i remove the hostname settings , the product url gives 404 error, I think that is because of url rewriting defined in urlrwriting.config.

    <add name="DefaultCategoryProductRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog/product.aspx?catalog=$2&amp;category=$3&amp;product=$4" ignoreCase="true" xmlns="" />
        <add name="DefaultProductRewrite" virtualUrl="(.*)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog/product.aspx?catalog=$2&amp;product=$3" ignoreCase="true" xmlns="" />
        <add name="DefaultCategoryRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog.aspx?catalog=$2&amp;category=$3" ignoreCase="true" xmlns="" />
        <add name="DefaultCatalogRewrite" virtualUrl="(.*)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog.aspx?catalog=$2" ignoreCase="true" xmlns="" />
    
    Is there any way i can solve this issue.

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Nov 07, 2012 @ 15:56
    Kim Søjborg Pedersen
    1

    I think you need to insert shop in the destinationUrl so it reflekt your sitetree, like this

    ~/shop/catalog/product.aspx?catalog=$2&amp;category=$3&amp;product=$4
  • Mr A 216 posts 278 karma points
    Nov 07, 2012 @ 16:08
    Mr A
    0

    Yep that does the trick

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 09, 2012 @ 13:14
    Søren Spelling Lund
    0

    Thanks for being awesome and helping out, Kim! #h5yr!

Please Sign in or register to post replies

Write your reply to:

Draft