Hello Vlad / Sitefinity Team:
Thanks for the response, however you seem to have missed what I was saying, so let me try clarify.
Before I begun to use the sitefinity localization, I had my pages written in Visual Studio 2005 and I was using urlwriting.net to rewrite the long urls.
Since i begun using the Sitefinity Localization by setting PersitenceMode = "PathPrefix", my rewrite code no longer works. When I remove the localization everything works as before.
** Please note that the pages for which there is a rewrite rule was not created in Sitefinity; they were created in Visual Studio 2005.
So it was no longer working with the localization enabled and as such I tried to use your url rewrite rules for which there is limited documentation is the user manual 3.1 and website. You said that my rewrite rule was incorrect if so, what would be the correct rewrite rule for the scenario i gave you?
To recreate the scenario do the following:
1. Open the website that was created in sitefinity in Visual Studio 2005.
2. Create the following at the specified location: "root/mywork/project1/software/default.aspx
" where "root" is the root folder of your project.
3. Turn on "Site Localization" in the web.config by setting PersistenceMode = "PathPrefix"
4.Add the rewrite rule to the web.config:<urlrewrites>
<!-- Add your rule elements here -->
** If the above url rewrite rule is not correct, then make the necessary changes.
5. Or you can use UrlrewritingNet (http://www.urlrewriting.net/en/Default.aspx
) to do the rewrites. (This has a feature to redirect also, which is does not seem to be present in your version of the Urlrewrite.)
6. Test the link http://localhos/rootfoldername/softtware/default.aspx
. It should be requesting the page at http://localhost/rootfoldername/mywork/project1/software/default.aspx
. However, it shows the pages "The resource cannot be found":
Server Error in '/mysite' Application.
The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /mysite/software/default.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
Please check this and let me know of the outcome and if you have a working copy please send me a demo project of it.
Thanks in advance,