Geekshop fresh install and 404 errors

andrey-fd

Apr 9th, 2017 01:15 PM

Hi!

I just installed recently purchased Geekshop script, everyting looks fine but only at first page.

Any links (to products, admin dashboard isnt working) - 404 error is shown.

What I should do? Looks like some handler or something like is missing...

http://104.236.104.11/

devdojo

Apr 9th, 2017 01:34 PM

Hey Andrey-fd,

Did you make sure that you uploaded the .htaccess file. By default it is hidden. If you do not see it on your webserver, make sure to add it, there should be one located at the root of the project called .htaccess which looks like this:

<IfModule mod_rewrite.c>

  # Turn Off mod_dir Redirect For Existing Directories
  DirectorySlash Off
  
  # Rewrite For Public Folder
  RewriteEngine on
  RewriteRule ^(.*)$ public/$1 [L]

</IfModule>

And there should be another one located inside of the public folder at public\.htaccess, with the following contents:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

If you do not see those, go ahead and create them on your server and try it again :)

Let me know if that helps.

Thanks. Talk to you soon.

andrey-fd

Apr 9th, 2017 02:18 PM

Hi! I checked my directories, these files are present with same content you provided.

May be something wrong with access rights for these files?

andrey-fd

Apr 9th, 2017 02:25 PM

i'm found that module ModRewrite has been isnt enabled. Now everything fine!

devdojo

Apr 9th, 2017 02:38 PM

Awesome, glad to hear :)

axel-james

Jun 12th, 2019 11:20 PM

These errors are common to have while doing work because we all did mistakes. The https://www.australian-writings.org/ wrote a research papers on how we can tackles these errors and then solve it.

tomc52856

Mar 13th, 2023 09:57 AM

No matter the age or stage, potty training can be a stressful and challenging process for both parents and children. However, with the right support and guidance, it is possible to help young children meet their toilet needs and become successful in the process. https://toiletneeds.com/best-chair-height-toilet/