All you have to do is remove the / from the aspx pages which refer to a redirect. They usually have getsiteroot()/login.aspx - remove the / from that. The other place to look is the shopping cart.ascx and the checkout.aspx to catch that receipt.aspx redirect.
Naibor
Member
10 Points
2 Posts
Double slash in url //
Apr 20, 2006 06:04 AM|LINK
Hi, does anyone know, how can i set the application, or modify the source code, for suprime one of the slash bar "//", that appear in the url?
for example:
I have tryed to suprime the link in the site.master, for the optios menu, but i get 404 in debug time, but it work fine in run time (on the hosting).
Are there anyway to set propperly the slash, for that ir works fine in debug time and run time.
Thank you
Ultima Hosts
Member
10 Points
226 Posts
Re: Double slash in url //
Apr 30, 2006 07:42 PM|LINK
All you have to do is remove the / from the aspx pages which refer to a redirect. They usually have getsiteroot()/login.aspx - remove the / from that. The other place to look is the shopping cart.ascx and the checkout.aspx to catch that receipt.aspx redirect.
Virtual Private Servers from $49 / mth
Dot Net Panel Hosters
Developer Friendly Hosting
MicheleDiMar...
Member
4 Points
5 Posts
Re: Double slash in url //
Jan 09, 2010 05:48 AM|LINK
Hello,
no way... asp.net do not report you a double slash in the path... so www.xx.com//test.aspx is considered by asp.net as www.xx.com/test.aspx...
This causes duplicate content in search engines (google on top) who causes loss of popularity and page popularity dispersion...
The only "fix" I found is to "tell" search engines which is the "good" address of the page, using the "canonical" directive. Here you fine how:
http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
Hope this will be helpful...
Michele
jatin0405047
Member
12 Points
11 Posts
Re: Double slash in url //
Feb 26, 2010 10:14 AM|LINK
gh