![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
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? |
#4
| ||||
| ||||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
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. |
#10
| |||
| |||
|
|
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? |
![]() |
| Thread Tools | |
| Display Modes | |
| |