http://domain.com/category.php?id=2
のURLをcars
カテゴリのすべての記事を表示するとします。クエリ文字列用のSEO URLを作成するには
私のデータベース構造category table
cat_id cat_name
--------------------
1 books
2 cars
とcontent table
con_id con_title con_cat
----------------------------------------
1 How to be a picker 1
2 How to repair your car 2
3 How to sell your car easily 2
どのように私はフレンドリーSEOように私の現在のURLを変更できますか?だから、content table
で2
に等しい/cars/
のクエリを伝えるためにどのようにして
http://domain.com/category/cars/
すべきですか?
ありがとうございました。現在の質問URL「http:// stackoverflow.com/question/9133135/」から 'http://stackoverflow.com/questions/9133135/how-do-i-create-a-seo-url-for-クエリ文字列 '。 私の現在のDB構造からは、これを 'http:// domain.com/category/2/cars /'のように変更できます。 – MRA
その場合、/ category /あなたのcategory.php?id = urlの後ろの数字 SQL Injectionの脆弱性がないことを確認してください。しかし、私はまだ/ 2 /の後ろのすべてが無視されるので、最も冗長な使用を可能にすることを主張します。 – TravisO