Forum Moderators: Robert Charlton & goodroi
I don't know of any way that you can redirect your .aspx url to your extensionless one. The server knows that the real page is the .aspx version, and it displays that when asked for the extensionless one. So if you then try to redirect back to the extensionless display url you end up in a loop.
What should I do in this regard? Should I put a redirect in this place?
I don't know of any way that you can redirect your .aspx url to your extensionless one. The server knows that the real page is the .aspx version, and it displays that when asked for the extensionless one. So if you then try to redirect back to the extensionless display url you end up in a loop.
At the same time, I wonder why only the .aspx version is indexed by Google not the one without .aspx. Server displays both version of pages when requested, though.
Unless the site name contains an element like "amazon" or "wiki", in which case they will happily show five marginally different versions of the same page, one after the other ;)
In general, when two different "path and file"s are available to show the same content, the shorter one should be the canonical URL.
it could be someting in your IIS server setup that says "if I get a URL without the extension, append .aspx and forward this to this script"
So for example, there could be a rule saying that if Request URL is extensionless, to forward it to the script of the same name with .aspx extension.
Also, can you please tell me why pages of the same website are ranking in the first page of search results for a keyword and without any break? Such as ranking in 1st, 2nd, 3r, 4th?
In general, when two different "path and file"s are available to show the same content, the shorter one should be the canonical URL.Thanks. But in my case, it's the opposite
Does that mean the one with extension and the one without extension are both operated by this command? So that I am getting the same page when requested from example.com/text.aspx and example.com/text?
Some of my website's pages are accessible in two ways
Such as
example.com/product-overview.aspx
example.com/product-overview