2011-08-23 132 views
0

我在我的網站中創建搜索引擎友好鏈接後出現問題。 這裏是.htaccess文件代碼。SEO友好的URL問題

RewriteEngine On 

RewriteRule ^www/category/([0-9]+)/(.*?).html$ www/product/productlist.php?category=$1 [L] 

珍貴,我有這個環節

http ://www.mysite.com/www/product/productlist.php?category=00136 

現在SEO鏈接是這個

http ://www.mysite.com/www/category/00136/aprons.html 

這是工作好。

和im的問題是頁面加載後所有其他網站的鏈接也改變了。 和那些鏈接正在url中有這些額外的行(www/category /)現在 如何避免這個事情。像

http ://www.mysite.com/www/content/index.php 

網站正常鏈接現在鏈接顯示

http ://www.mysite.com/www/category/content/index.php 

如何避免將這些文件夾的名稱 - WWW /分類/

其他鏈接有短網址像這個 -

a href='../../www/content/index.php' 

感謝

IM真的欣賞這個

回答

1

您的鏈接有價值的回答應以斜線開頭,表示該鏈接相對於網站的根目錄。

/content/index.php 
+0

好的,謝謝我會相應地更新 – Tharanga