• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Cliff
#1 Posted : Wednesday, January 17, 2007 2:39:00 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Let's assume I've created a category called Test Category which is at http://store.com/Departments/Test-Category.aspx.

I then set up a re-write in the category to point to http://store.com/Departments/Test.aspx instead.

Both URLs work, which seems a bit odd. Is this by design? Could it cause potential issues?
[email protected]
#2 Posted : Wednesday, January 17, 2007 5:03:48 PM(UTC)
bobn@laurastamm.net

Rank: Member

Joined: 6/6/2005(UTC)
Posts: 483

I noticed that too. I also noticed that not only do both of them work, but they will display the address you used to get there on the address bar of your browser. So I'm guessing any internal links we may use should be to the rewritten url for search engine purposes. (?)

The neat thing is when navigating the site, the address bar will display the rewritten url for categories (haven't tried the products yet - to much work) by default, but not the custom pages. Again, for the custom pages, both url's work, it just displays the original. The product url contains the product name so rewriting those url is probably a waste of time.

I'm assuming the default url (rewritten one for Categories) is the one the search engines see. So rewriting a custom page url's for search engines would be a waste of time. Is this a correct assumption?

Based on all these observations, I'm guessing (just a guess) the rewritten url is just a pointer that points to the original url (the only true one). But they did manage somehow to get it to stick around for the search engines to find as a default.

Bob Noble
jetheredge
#3 Posted : Wednesday, January 17, 2007 5:19:20 PM(UTC)
jetheredge

Rank: Member

Joined: 3/1/2006(UTC)
Posts: 1,142

Its isn't really by design, but it is a side effect of how url rewriting in asp.net works. The first url you have is the automatic url rewriting. So basically we just look at the pattern of the url and find the correct product. The next url is hardcoded, so when you type that url in, we actually look through our potential rewritten urls and find that one, then it goes to the product. Basically it is two ways to get to the exact same page.

And the actual page they are going to is the particular product template represented by that product. So neither url actually points to a real file, they are just sent to the product template with the id of the product or category appended to the url string.
Justin Etheredge
Senior Software Engineer
BVSoftware
Cliff
#4 Posted : Wednesday, January 17, 2007 6:29:28 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Alright. As long as you don't think it will pose a problem in the future, whether it be SEO (which, I don't see how there could be an issue here because the unused URL isn't linked anywhere, as far as I know) or something else.
[email protected]
#5 Posted : Wednesday, January 17, 2007 7:20:51 PM(UTC)
bobn@laurastamm.net

Rank: Member

Joined: 6/6/2005(UTC)
Posts: 483

I tried another test. I sent one rewritten url to 2 different actual url's. I made another url with the same name. It let me do it but it only sends me to the first rewritten one. It didn't seem to make much difference which page I sent the second one too.

At least it would be an easy one to debug if you did this by accident.

Bob Noble
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012