By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,115 Members | 898 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,115 IT Pros & Developers. It's quick & easy.

URL Re-write question

P: n/a
Med
Hi,

From
http://dotnetguts.blogspot.com/2008/...writernet.html I
managed to rewrite
http://www.example.com/product.aspx?...e=Panasonic+TV to:
http://www.example.com/Panasonic-TV-123.aspx

I am new to URL re-write and I have couple of questions:
1. As far as search engines such as google are concerned, does file
extension in URL matter? If so How can I change Panasonic-TV-123.aspx to
Panasonic-TV-123.html?
2. At the moment All my aspx files in my public app folder are URL
re-written to page2.aspx due to my web.config setting as follow:
<rewriter>
<rewrite url="~/public/(.+)-(.+).aspx"
to="~/public/page2.aspx?MyTitleId=$2"/>
</rewriter>

How can I change the url re-write destination individually for each aspx
page as follow:

<rewrite url="~/public/page1.aspx" to="~/public/page2.aspx?MyTitleId=$2"/>
<rewrite url="~/public/page3.aspx" to="~/public/page4.aspx?MyTitleId=$2"/>
.....
but when I try to load page1.aspx it loads page2.aspx

Thanks for your time.

Med
Aug 6 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.