2013-01-16 40 views
0

目前我使用像這樣的seo。.htaccess vs自定義請求URI處理程序和sef鏈接

PHP: domain.com/index.php?page=account&do=forgotpassword 
.htaccess: domain.com/account/forgotpassword.html 

但是,我想爲它編寫自己的處理程序,或者使用任何其他現有的處理程序執行以下操作。

Handler: Check request URI, convert it back to normal. 
--- Request URI: domain.com/?/account/forgotpassword.html 
--- Converts to: domain.com/index.php?page=account&do=forgotpassword 
.htaccess: RewriteRule (.*)$ ?/$1 
  1. PHP是否支持這樣的處理程序?如果是這樣,你能給我一個鏈接,我可以看到這樣的處理程序? (例如代碼點火器,如果存在的話)。

  2. 它對SEO方面有什麼影響嗎? (例如Google忽略/喜歡鏈接)

謝謝。

回答

相關問題