Question: Folder not found on the server

Folder not found on the server

Hello, I don't know why i'm redirected to my url /admin because there's no folder admin on the server. I've got app, assets, files, system, themes, update and vendor folders, install was d

JG

Jean-Philippe GODINI

Asked

Hello,

I don’t know why i’m redirected to my url /admin because there’s no folder admin on the server. I’ve got app, assets, files, system, themes, update and vendor folders, install was deleted.

I’ve redownload the file from codecanyon many times, currently the last version, but no admin folder. Is there something i missed ?

Thank you Regards.

  • MS

    Mian Saleem

    Answered

    Hello,

    The admin is not folder but route. If you are getting 404 not found error, please check the documentation.pdf there is FAQ with checklist suggestions.

    Over 95% caused due to missing .htaccess file. I am pasting the FAQ below


    Why am I getting 404 Not Found error after installation?

    Please

    1. make sure that your apache mod_rewite is enabled
    2. check that .htaccess file is successfully uploaded and exists in the main directory of SMA
    3. base_url in app/config/config.php

    If you are using godaddy, please visit the codeigniter official guide here. You might need to check and modify you .htaccess files too.

  • JG

    Jean-Philippe GODINI

    Answered

    Hi thanks for the answer, the .htaccess is already there, i’m gonna try something and tell you what.

  • JG

    Jean-Philippe GODINI

    Answered

    Hi,

    So, i’ve check all you said. Here a screenshot where you can see the htaccess file in the main directory of SMA, the mode rewrite available and the base_url in the config.php file in /app/config. Everything is correct but i can’t use SMA.

    Attachments
  • JG

    Jean-Philippe GODINI

    Answered

    Hi,

    So, i’ve check all you said. Here a screenshot where you can see the htaccess file in the main directory of SMA, the mode rewrite available and the base_url in the config.php file in /app/config. Everything is correct but i can’t use SMA.

    Attachments
  • MS

    Mian Saleem

    Answered

    Hello,

    For the 1, the mod_rewrite should be enabled and configured to use .htaccess file from site directory

    You can open the .htaccess file and see the contents.

    Thank you

  • JG

    Jean-Philippe GODINI

    Answered

    Hello, here is what is in the htaccess

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

    Mian Saleem

    Answered

    Hello,

    The contents of the .htaccess file look fine. Did you check that the apache mod_rewrite is configured to use the .htaccess file from site directory? You can refer to this article.


    How to permit changes in the .htaccess file:

    To allow the .htaccess file to override standard website configs, start by opening up the configuration file. NB: You will need sudo privileges for this step.

    sudo nano /etc/apache2/sites-available/default
    

    Once inside that file, find the following section, and change the line that says AllowOverride from None to All. The section should now look like this:

     <Directory /var/www/>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride All
                    Order allow,deny
                    allow from all
     </Directory>
    

    After you save and exit that file, restart apache. .htacess files will now be available for all of your sites.

    sudo service apache2 restart
    

    Now you are all set up to rewrite your site’s URLs.


    If you still have issues, please install it on live server so that I can help you check. I can’t check the local installations.

    Thank you

  • JG

    Jean-Philippe GODINI

    Answered

    Hi, you can close the ticket i’ve solved the problem.

  • MS

    Mian Saleem

    Answered

    Hello,

    I am glad to know. If any answer was help, you can accept it. Otherwise the question will be marked resolved automatically in few days.

    Thank you

  • Login to Reply