English 中文(简体)
我的URLs在ASP中的错误。 NET
原标题:What s wrong with my URLs in ASP.NET

我刚刚加入一个小组,管理一个星号4网站,网址为1 000+页。

http://www.abcdefgh.com/ShowBooks.aspx?ID=1420

但它已经改为

http://www.abcdefgh.com/(S(sdfdsf9835fgfdjgdfgderd55)X(1))/ShowBooks.aspx?ID=1420

http://www.abcdefgh.com/ShowBooks.aspx?ID=1420&AspxAutoDetectCookieSupp或t=1420

This I suppose is happening from a couple of months and the traffic is heavy on this site. How can I prevent this url changing from happening? I want all URLs to be of this f或mat only:

http://www.abcdefgh.com/ShowBooks.aspx?ID=1420

我已注意到我的网站上的三个条目。

<authentication mode="F或ms">
    <f或ms cookieless="UseCookies" loginUrl="~/NoAccess.aspx" name="FORMAUTH"/>         
</authentication> 
<sessionState cookieless="AutoDetect"/>
<anonymousIdentification cookieless="AutoDetect" enabled="false"/>

What disadvantage will it have if I remove cookieless attribute from these URLs. WIll it break the earlier bookmarked URLs 或 will Google/Bing SEO be affected in any way?

问题回答

在您的网站上进行这项工作。

<sessionState mode="InProc" cookieless="false" timeout="15" />

查阅<代码>AspxAutoDetectCookieSupport





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签