Admin-Ahead Community

General Category => General Discussion => Topic started by: akhils on November 21, 2013, 07:39:41 pm

Title: A Common error which customer's come up with regard to "Magento".
Post by: akhils on November 21, 2013, 07:39:41 pm
When a customer approaches with an issue where he/she says, he/she is not able to access the links under the main domain and mentions that the page is depended on "Magento", it is most likely an issue with ".htaccess" file missing under the document root of that particular  domain.
==============
In order to resolve this issue, add the .htaccess file with contents as below {Magento default .htaccess file}
==============
    ##
    ## Default Magento .htaccess. Modify RewriteBase as needed to point to     
    ## installed magento script directory
    ##
     
    Options +FollowSymLinks
     
    RewriteEngine On
     
    RewriteBase /
     
    RewriteCond %{REQUEST_URI} !^/media/
    RewriteCond %{REQUEST_URI} !^/skin/
    RewriteCond %{REQUEST_URI} !^/js/
    RewriteCond %{REQUEST_URI} !^/var/
     
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-l
     
    RewriteRule . index.php [L]
==============
Save it under the document root and change the ownership of the same to the default ownership of files under the document root.  :)