Copied to clipboard

Flag this post as spam?

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


  • umbracocool 108 posts 197 karma points
    May 30, 2012 @ 01:12
    umbracocool
    0

    How to use friendly url?

    Hello my friends! 

    I know my problem is easy, but, I am new to this topic.

    Well I need to pass this url

    http://domain.com/news/?page=2

    In this way, using Rewriting

    http://domain.com/news/page/2

    I just need it folks, Thank you very much!

  • Fuji Kusaka 2203 posts 4220 karma points
    May 30, 2012 @ 08:07
    Fuji Kusaka
    0

    Hi there,

    You could try changing the <url Replacing> in the config file umbracoSettings.config. 

    Have something like

     <char org="?"></char> and  <char org="=">/</char>

    //fuji

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Jun 01, 2012 @ 09:22
    Chriztian Steinmeier
    1

    Hi,

    @Fuji: I would strongly recommend against using that file(/section) for doing this (and I doubt it will work anyway, because technically, the "?" should not be available to the engine doing that). If that works, you won't be able to use e.g. a search module (like XSLTSearch) using GET requests...

    This belongs in the UrlRewriting.config file where one should set up a rewrite that takes any URL matching something like "/news/?page=(\d+)" and rewrites that to "/news/page/$1" within the application (so not a permanent Domain rewrite with headers etc.)

    /Chriztian

  • Fuji Kusaka 2203 posts 4220 karma points
    Jun 01, 2012 @ 09:26
    Fuji Kusaka
    0

    Hi Chriztian,

    Thank you for this precision. 

     

    //fuji

Please Sign in or register to post replies

Write your reply to:

Draft