B
bric
I was following this article:
http://www.wwwcoder.com/main/parentid/271/site/2014/68/default.aspx
and I know have a working url rewriter. But it's messy and I have a
worry.
My URL is
http://localhost/artist_page/id/189/artistid/67/
and it rewrites to
http://localhost/artist.aspx?id=189&artistid=67
That's fine. But I was running the debugger and saw something
disturbing.
When I first pull the url I do this:
Dim strURL As String = objHttpApplication.Request.Url.ToString.ToLower
That gives me a strURL with the value:
http://localhost/servererrors/404.aspx?404;http://localhost/artist_page/id/189/artistid/67/
So I use regex to pull the 404 references out at the same time that I
rewrite the string to a normal querystring.
BUT, do I have to worry that it's being identified as 404 even though
the proper page is loading? Is it being identified as 404?
As you might guess, I'm doing this for the search engines and if
they're detecting 404 then that could be a problem.
How can I tell?
thanks,
Brian
http://www.wwwcoder.com/main/parentid/271/site/2014/68/default.aspx
and I know have a working url rewriter. But it's messy and I have a
worry.
My URL is
http://localhost/artist_page/id/189/artistid/67/
and it rewrites to
http://localhost/artist.aspx?id=189&artistid=67
That's fine. But I was running the debugger and saw something
disturbing.
When I first pull the url I do this:
Dim strURL As String = objHttpApplication.Request.Url.ToString.ToLower
That gives me a strURL with the value:
http://localhost/servererrors/404.aspx?404;http://localhost/artist_page/id/189/artistid/67/
So I use regex to pull the 404 references out at the same time that I
rewrite the string to a normal querystring.
BUT, do I have to worry that it's being identified as 404 even though
the proper page is loading? Is it being identified as 404?
As you might guess, I'm doing this for the search engines and if
they're detecting 404 then that could be a problem.
How can I tell?
thanks,
Brian