Answer the question
In order to leave comments, you need to log in
How to redirect site.com/magento/index.php to site.com/ in .htaccess?
now this code is in the .htaccess root folder of the site
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{http_host} ^site.com [NC]
RewriteRule ^magento/(.+)$ http://www.site.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?site\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/magento(/.*)?$ [NC]
RewriteRule ^(.*)$ /magento/$1 [QSA,L]
Answer the question
In order to leave comments, you need to log in
Why such perversions? Place one level up.
Apache webserver or nginx? maybe the second one is why .htaccess doesn't work?!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question