HighDots Forums  

Dynamic or Static Pages in ASP

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss Dynamic or Static Pages in ASP in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vunet.us@gmail.com
 
Posts: n/a

Default Dynamic or Static Pages in ASP - 09-20-2006 , 03:34 PM






So, from the previous post I understand that pages like
mypage.asp?id=XYZ are not SE friendly, aren't they?
Please, share your knowledge about this. I have a site with one page
name but different IDs and by these IDs different content comes up.
Will Google or any other SE index these pages?
Wha is the workaround in ASP similar to .htaccess for PHP pages?


Reply With Quote
  #2  
Old   
z
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 04:43 PM






vunet.us (AT) gmail (DOT) com wrote:

Quote:
So, from the previous post I understand that pages like
mypage.asp?id=XYZ are not SE friendly, aren't they?
Please, share your knowledge about this. I have a site with one page
name but different IDs and by these IDs different content comes up.
Will Google or any other SE index these pages?
Wha is the workaround in ASP similar to .htaccess for PHP pages?
I don't know how it works with ASP, but with PHP/Apache it is not a very
good idea to design a site with URLs like this:

example.com/index.php?id=XYZ

One reason for that is because you can also type in a page that doesn't
exist like:

example.com/index.php?id=your_site_is_screwed

and the server will display the home page at that URL.

That means instead of sending 404 errors for these non-existant pages, you
will get duplicate URLs for the home page (duplicate content).

In a worst case scenario you can get hundreds of pages indexed that don't
exist, but that display the content of the home page. Say hello to the
supplemental results.

This can easily happen if you delete many pages and the search engines are
still requesting those pages. The site should send a 404 error, but it
sends the home page content instead.

There may be a workaround, but if there is it isn't used very often, and
it's not the only reason why those dynamic URLs are not the best idea.


It's also not a good idea to change URLs if they are already indexed, but if
you can 301 redirect them you might be ok.




Reply With Quote
  #3  
Old   
John Bokma
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 05:56 PM



vunet.us (AT) gmail (DOT) com wrote:

Quote:
So, from the previous post I understand that pages like
mypage.asp?id=XYZ are not SE friendly, aren't they?
Please, share your knowledge about this. I have a site with one page
name but different IDs and by these IDs different content comes up.
Will Google or any other SE index these pages?
Wha is the workaround in ASP similar to .htaccess for PHP pages?
Using PATH_INFO might help, e.g.

mypage.asp/XYZ/some-key-words


There are URL rewriting solutions for IIS though.

--
John Need help with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-help.html


Reply With Quote
  #4  
Old   
Borek
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 05:57 PM



On Wed, 20 Sep 2006 22:43:59 +0200, z <news01.web (AT) mailnull (DOT) com> wrote:

Quote:
I don't know how it works with ASP, but with PHP/Apache it is not a very
good idea to design a site with URLs like this:

example.com/index.php?id=XYZ

One reason for that is because you can also type in a page that doesn't
exist like:

example.com/index.php?id=your_site_is_screwed

and the server will display the home page at that URL.
No. You are completely, utterly wrong. What it will display depends on how
the page was coded.

Quote:
That means instead of sending 404 errors for these non-existant pages,
you will get duplicate URLs for the home page (duplicate content).
Only if you have no clue how to code it properly.

Quote:
In a worst case scenario you can get hundreds of pages indexed that don't
exist, but that display the content of the home page. Say hello to the
supplemental results.
Only if you have no clue how to code it properly.

Quote:
This can easily happen if you delete many pages and the search engines
are
still requesting those pages. The site should send a 404 error, but it
sends the home page content instead.
Only if you have no clue how to code it properly. But I feel like I am
repeating myself.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl


Reply With Quote
  #5  
Old   
z
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 06:37 PM



Borek wrote:

Quote:
On Wed, 20 Sep 2006 22:43:59 +0200, z <z> wrote:

Only if you have no clue how to code it properly. But I feel like I am
repeating myself.
If you know the fix, it would be kind of you to mention what you are
referring to, or even to share the solution. Otherwise it is just
condecending.

Most people do not know how to code it. I've never seen it in PHP tutorials
and it is not obvious. The default in most PHP web sites I've seen is to
show the home page when you type in an incorrect query string.


Reply With Quote
  #6  
Old   
z
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 06:46 PM



Borek wrote:

Quote:
On Wed, 20 Sep 2006 22:43:59 +0200, z <news01.web (AT) mailnull (DOT) com> wrote:

One reason for that is because you can also type in a page that doesn't
exist like:

example.com/index.php?id=your_site_is_screwed

and the server will display the home page at that URL.

No. You are completely, utterly wrong. What it will display depends on how
the page was coded.
[...]
Only if you have no clue how to code it properly.
[...]
Only if you have no clue how to code it properly.
[...]
Only if you have no clue how to code it properly. But I feel like I am
repeating myself.

Even php.net exhibits this behavior with showing the home page for various
query strings.

(although they are rewriting the URLs)



Reply With Quote
  #7  
Old   
Borek
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 07:04 PM



On Thu, 21 Sep 2006 00:37:08 +0200, z <news01.web (AT) mailnull (DOT) com> wrote:

Quote:
Only if you have no clue how to code it properly. But I feel like I am
repeating myself.

If you know the fix, it would be kind of you to mention what you are
referring to, or even to share the solution. Otherwise it is just
condecending.
chembuddy site have no problems with the parameters value - it displays
404 correctly, no matter what you enter. Or at least it did in April,
after site revamping. I did some changes later and have not tested it too
extensively.

Just occured to me that you may mean not

example.com/index.php?id=something

but

example.com/index.php?something

but even then it should be not a problem, as you may analyse url using
$_SERVER variable.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl


Reply With Quote
  #8  
Old   
z
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 07:37 PM



Borek wrote:

Quote:
On Thu, 21 Sep 2006 00:37:08 +0200, z <z> wrote:

chembuddy site have no problems with the parameters value - it displays
404 correctly, no matter what you enter. Or at least it did in April,
after site revamping. I did some changes later and have not tested it too
extensively.

Just occured to me that you may mean not

example.com/index.php?id=something

but

example.com/index.php?something

but even then it should be not a problem, as you may analyse url using
$_SERVER variable.
Ah yes, you are right. I was just testing it today with ?something. But
there are a couple of other sites I just tested it with that show the home
page for ?id=something. I've worked on a few sites with that problem.

How could you know if a page doesn't exist with the $_SERVER variable? Use
$_SERVER['QUERY_STRING'] and then check if that page exists in the
database, else send 404 header?


Reply With Quote
  #9  
Old   
z
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-20-2006 , 07:43 PM



z wrote:

Quote:
Ah yes, you are right. I was just testing it today with ?something. But
there are a couple of other sites I just tested it with that show the home
page for ?id=something. I've worked on a few sites with that problem.
Just checking it again. The problem on those sites is more than just
exactly "?id=something", but those problems occured on sites that were
using the dynamic URLs like that. I can't get the URLs out of the Google
cache to check the older ones.


Reply With Quote
  #10  
Old   
Borek
 
Posts: n/a

Default Re: Dynamic or Static Pages in ASP - 09-21-2006 , 02:48 AM



On Thu, 21 Sep 2006 01:37:41 +0200, z <news01.web (AT) mailnull (DOT) com> wrote:

Quote:
example.com/index.php?something

but even then it should be not a problem, as you may analyse url using
$_SERVER variable.

Ah yes, you are right. I was just testing it today with ?something. But
there are a couple of other sites I just tested it with that show the
home
page for ?id=something. I've worked on a few sites with that problem.

How could you know if a page doesn't exist with the $_SERVER variable?
Use
$_SERVER['QUERY_STRING'] and then check if that page exists in the
database, else send 404 header?
Details must depend on the internal implementation of your site, but you
are on the right track.

Borek
--
http://www.chembuddy.com
http://www.ph-meter.info
http://www.terapia-kregoslupa.waw.pl


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.