M
Med
Hi,
From
http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html I
managed to rewrite
http://www.example.com/product.aspx?productname=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
From
http://dotnetguts.blogspot.com/2008/07/url-rewriting-with-urlrewriternet.html I
managed to rewrite
http://www.example.com/product.aspx?productname=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