該網站是在子文件夾:Magento的URL重寫和SEO
www.example.com/sub-folder/index.php/webpage.html
如何隱藏/sub-folder/index.php/
使顯示的URL www.example.com/webpage.html
?隱藏它是否會影響SEO?
該網站是在子文件夾:Magento的URL重寫和SEO
www.example.com/sub-folder/index.php/webpage.html
如何隱藏/sub-folder/index.php/
使顯示的URL www.example.com/webpage.html
?隱藏它是否會影響SEO?
從技術上講,沒有/子文件夾/是理想的選擇,但如果您在子文件夾目錄下擁有子文件夾,則只要您關注您商店中的其他頁面因素,就沒有多大關係。 爲什麼不將網站移動到根目錄?
如果在/ shop或目錄下安裝了magento,則將以下規則添加到「/home/username/public_html/shop/.htaccess」文件中。
<IfModule mod_rewrite.c>RewriteEngine On
RewriteBase /shop/RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /shop/index.php [L]</IfModule>
檢查此鏈接http://roshanlal.in/magento/how-to-remove-index-php-in-url-with-magento/
希望這將幫助你
是在Apache上運行您的網站?然後.htaccess重寫可以做到這一點。 –