2014-04-16 32 views
0

在我的頁面中,徽標是鏈接到主頁。最初在網址欄中的主頁上寫着它的localhost,但是當我點擊鏈接並返回到index.php,它寫在第url地址欄localhost/index.php中。我如何從那裏刪除index.php?但是不要在.htaccess中使用重寫功能。鏈接指向它後,從主頁中刪除index.php

在我的頁面中,徽標是鏈接到主頁。最初在網址欄中的主頁上寫着它的localhost,但是當我點擊鏈接並返回到index.php,它寫在第url地址欄localhost/index.php中。我如何從那裏刪除index.php?但是不要在.htaccess中使用重寫功能。

+0

什麼你的鏈接是什麼樣子?我猜他們包括'index.php'? – Alex

+0

您需要獲取ROOT網址或livehost。 –

回答

0

只需使用/爲您href

<a href="/"><img src="mylogo.png" /></a>