/    Sign up×
Community /Pin to ProfileBookmark

URLs in a sitemap…..

Hi

The site in question uses a URL rewriting thingy (I didn’t write it so I don’t know a huge amount about it).

Basically, the news article pages are served like this:

[url]www.mywebsite.com/article.aspx?id=99999[/url]

However, you can also browse the same article by using this URL:

[url]www.mywebsite.com/This-is-my-headline.99999.xyz[/url]

where xyz is a unique file extension registered in IIS so that it can be handled differently (effectively it knows to use the article.aspx page and supplies the article id, the actual headline text is ignored by the URL rewriter).

Whichever of those URLs you use, the browser will show the latter form of it. If you use the former version, then the code behind will form the URL by grabbing the article headline out of the DB and formatting it correctly.

OK, so the question is how to write the sitemap correctly for this.

Should I use:

[code=php]
<url>www.mywebsite.com/article.aspx?id=11111</url>

<url>www.mywebsite.com/article.aspx?id=22222</url>

<url>www.mywebsite.com/article.aspx?id=33333</url>
[/code]

or

[code=php]
<url>www.mywebsite.com/This-is-my-headline.11111.xyz</url>

<url>www.mywebsite.com/This-is-my-next-headline.22222.xyz</url>

<url>www.mywebsite.com/This-is-my-final-headline.33333.xyz</url>
[/code]

Or, does it not matter?

to post a comment
SEO

1 Comments(s)

Copy linkTweet thisAlerts:
@tonygreg123Jan 21.2010 — 2nd option is better because it is search engine friendly url.
×

Success!

Help @Rodders spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...