English 中文(简体)
Is this the right way to make my website google-friendly? [closed]
原标题:

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed last month.

I have created several Q about correctly mapping a website with a database so that google can index it properly. However, need more info.

My website is a classifieds website (PHP). Users can search ads on my site. Searching for BMW will bring up only the titles of all bmw ads and display them as a search result. (like google kindof). When user clicks on an ad , no matter which ad, an ID of that ad is passed along to show_ad.php . In show_ad.php the ID is received and the proper ad is displayed from the mysql database. Also, when displaying the ad, meta-tags are also dynamically changed (fetched from db) to fit the ad (I need this so that google finds the ad easier hopefully).

Now, would this be enough for making my site friendly ?

Also, I can change the URL with .htaccess I think, so instead of:

   http://www.mypage.com/show_ad.php?ID=12345

it will show:

   http://www.mypage.com/12345.htm

Also, I think I must add a link like the one above inside a static html page for each ad created, just so that google knows its there... right?

But, still, will this be enough?

Please guide me...

最佳回答

To make it more friendly, I would suggest the following:

  1. For each URL, instead of having (just) an id, try to add keywords to the URL as well. The earlier the better: /bmw/12345/show_ad.php
  2. For each page, make sure you have a good <title>. I.e. My page - Ads - BMW
  3. Have a proper <h1>-tag containing the keywords you want to rank high in.
问题回答

If your pages are dynamic and share a layout, there is a good chance Google will throw many of them out as duplicates. If the content is significantly different from page to page,there is less of a chance of that happening. Google will likely not index all of your pages in either case.

If possible, you should make your urls have words not numbers as Google will look at the URL for keywords.

I would recommend this book. An answer on stack overflow won t give you sufficient information.

(The art of SEO "Theory in Practice")

http://www.amazon.com/dp/0596518862

Yes, it will help a lot, google will still spider pages with parameters on the end, but they still treat .htm pages differently.

As another suggestion, try putting the subject into the filename:

http://www.mypage.com/traeger-grill-for-sale.htm

Or something like that, and have a search parameter thrown in to show_ad.php. This will help even more.

Don t use ids, use the tag in the URL, more Google and human friendly, so instead of

http://www.mypage.com/12345.htm

use URLs like this one

http://www.mypage.com/your_tag_name.htm

To do this type of things you would need another field in you DB for the URL friendly name for the tag (spaces, accents... removed) and use mod_rewrite to rewrite the URLs.

1.URL is primary in your situation. Google does not like URL created from data base. So make a change to it. I recommend you make your URL in this way: www.yourdomain.com/BMW/12456/bmw-car-AD.The advantages of this URL are: It is user friendly, Google friendly(since it contains keywords)and system stable as well(see the ID).

2.All of SEO stuff like good title and description tag,<im> your keywords, decently use <t>,keywords etc. It is worthwhile to read some related articles. Do not obsessed by SEO, do things Google encouraged you to do.

3.Good sitemap is also useful. Pay attention to URL structure of your whole site, if possible, please build some inbound links to your site, that is also helpful.

Good luck to you!

Here is what Google says as of today (20 Apr 2023):

Optimize your site for search engines (for beginners)

Top tips to improve your site s search results on Google Here are a few simple ideas that can help Google understand your site, and help the right people find it.

Be descriptive: Use accurate, descriptive titles for your pages. We recommend putting different topics, products, or services on different pages, one topic (or closely related set of items) per page. Be complete: Mention everything that you have to offer. Google is smart, but we can t guess what you don t tell us.

Be topical: Update your content to account for seasons, trends, or new offerings. For example, if you run an ice cream store that also sells hot chocolate, be sure to feature your ice cream in the summer, and your hot chocolate (or coffee, or sandwiches) prominently in the winter, when people won t be looking for ice cream stores. If a new trend starts for kiwi ice cream and you have it in your store, feature it prominently.

Keep your site up to date: If you haven t updated your site since 1925, it s time to remove the references to Calvin Coolidge in your current events blog.

Use text: Don t put all your site content or page titles only in images, video, or other non-text formats that Google understands less well than text. If you use a graphic for your site name, include the name in the page text as well.

Get referrals: Have your site mentioned in useful places online. See if you can get into your local online news sites, or in any other appropriate resources.

Want more? Read the full guide here.





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...

热门标签