1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Changing search result URLs with reverse proxy

Changing search result URLs with reverse proxy

5 posts, 0 answered
  1. Winfried
    Winfried avatar
    1 posts
    Registered:
    05 Apr 2011
    05 Apr 2011
    Link to this post
    Hi,

    we are currently in the process of rolling out our Sitefinity CMS. As we don't want our IIS to be directly connected to the internet, we are using a reverse proxy, which proxies the requests of the client to the IIS and returns the results back to the browser. 

    So far this is working fine, except of one thing. The search results (as our proxy is calling an internal URL to reach Sitefinity) is providing URLs with the internal servername of the Sitefinity server instead of the public URL that has been requests. This somehow makes sense, as Sitefinity simply uses the hostname it has been called with, but for us that does not work, as the customer will not be able to reach the internal URLs.

    e. g result: http://<internalurl>/corporate/article/2011/03/29/test

    Is there a way, that we can force the search results to always provide a static FQDN to the client, so that the results results are valid for them?


    Thanks
    Winni
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    08 Apr 2011
    Link to this post
    Hi Winfried,

    It is possible i. The easiest option is modifying the search results control and changing the result item url. Please check this post

    http://www.sitefinity.com/blogs/ivandimitrov/ivanposts/09-11-05/separating_search_results_in_multilingual_websites.aspx

    Greetings,
    Ivan Dimitrov
    the Telerik team

  3. Ruben
    Ruben avatar
    10 posts
    Registered:
    02 May 2011
    08 Sep 2011
    Link to this post
    Dear Ivan / Sitefinity Crew,

    We have a problem that is perhaps related to this issue.

    In the live version of our site, say www.ourlivesite.com, we are getting search results from our demosite, say www.ourdemosite.com, which is closed off from external entries.

    When we type "demo" in the search box from sitefinity, two news items that were on the demo site are being shown, with links to the urls of the closed off demo site.

    How could we prevent this? Are search indexes from the demo site being stored in the database?

    Thanks in advance for your help.

    Ruben Meintema
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 May 2017
    12 Sep 2011
    Link to this post
    Hello Ruben,

    The search results are stored in App_Data/Seach folder. There is no record in the database. You use the same search for both the websites or you have common data that is indexed. You can check from where the request comes from using the host name and prevent showing data from one website in another.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  5. Ruben
    Ruben avatar
    10 posts
    Registered:
    02 May 2011
    12 Sep 2011
    Link to this post
    Hi Ivan,

    Thanks for your reply.

    We have just made a new search index, so that also does the trick.

    But next time we will know where to look for it!

    Thanks a lot,

    Ruben
5 posts, 0 answered