301 redirect dosen't work

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/11/2012 6:50:48 AM
Gravatar
Total Posts 4

301 redirect dosen't work

Hi

I'm using mojo 2.3.8.1 MSSQL and I wanted to add 301 redirect from :

/obsluga-klienta.aspx to /kontakt.aspx. First is parent, second one is a child.

When I add redirect I have error :

2012-05-11 13:24:20,726 ERROR 95.48.178.250 - pl-PL - /obsluga-klienta.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(http://pocztylion.eserwer24.pl/SiteMap.aspx)  PageNotFoundHttpModule handled error.
System.Web.HttpException: The file '/obsluga-klienta.aspx' does not exist.
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


when I delete redirect everything works ok.

I use Intelligencia.UrlRewriter with mojo and I thought that this can cause problems but when I delete it from web.config redirect still dosen't work.

I use mojo 301 redirect on other sites many times and it has worked perfectly.

 

Please help.

Best.

Marcin

5/12/2012 10:42:37 AM
Gravatar
Total Posts 4

Re: 301 redirect dosen't work

Hi

Ok, this was my fault :)

I added Intelligencia.UrlRewriter because I needed to add something like this :

<rewrite url="~/Wykres/(.+)/(.+)/(.+)/Xml.aspx" to="~/Wykresy/GetXml.aspx?d_start=$1&amp;d_end=$2&amp;period=$3" />

I need this for charts.

I removed Intelligencia.UrlRewriter and now redirect works , but charts don't work :)


Can you help my me with this rewrite.? Maybe there is another way to add this to web.config

I would be very grateful.


Best

Marcin


You must sign in to post in the forums. This thread is closed to new posts.