简体   繁体   中英

Magento URL rewrite and SEO

The website is in a sub-folder:

www.example.com/sub-folder/index.php/webpage.html

How do I hide /sub-folder/index.php/ to make the displayed URL www.example.com/webpage.html ? Does hiding it affect SEO at all?

Technically it is ideal to be without /sub-folder/, but it would not matter that much if you have it under the subfolder directory as long as you take care of the other onpage factors on your shop. Why don't you move the website to the root directory?

If the magento installed under /shop or directory then add the following rules into ” /home/username/public_html/shop/.htaccess ” file.

<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>

check this link http://roshanlal.in/magento/how-to-remove-index-php-in-url-with-magento/

hope this will help you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM