Question: Htaccess File Missing And I Got Error 404

Htaccess File Missing And I Got Error 404

HI everyone in the documentation file, it says to check that the .htaccess file is successfully uploaded and exists in the main directory of SMA. in fact does not exist, my question is how t

AS

aras saeed

Asked

HI everyone in the documentation file, it says to check that the .htaccess file is successfully uploaded and exists in the main directory of SMA. in fact does not exist, my question is how to get this .htaccess file? After i installed the SMA i got this error 404

  • MS

    Mian Saleem

    Answered

    Hello,

    Please check your download again. If you still can’t find the .htaccess in your download, please take the screenshot and attached with your reply. If you are on linux/unix system, the dot files are hidden by default.

    Anyway, these are the contents of the file, you can create it on your server.

    DirectoryIndex index.php index.html
    
    <IfModule mod_rewrite.c>
    
    RewriteEngine On
    # RewriteBase /basepath/
    RewriteCond $1 !^(index\.php|assets|install|update)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # For godady Shared Hosting Server uncomment the line below
    RewriteRule ^(.*)$ index.php?/$1 [L]
    
    # Please comment this if you have uncommented the above
    # RewriteRule ^(.*)$ index.php/$1 [NC,L,QSA]
    
    </IfModule>
    

    Thank you

  • AS

    aras saeed

    Answered

    thank you now it’s working fine I copied the text and created the .htaccess file on the server.

  • Login to Reply