When I was trying to install this script with an apache server (without nginx), I got 404 error.
I think all of you know about that. I was trying to find the solution. and I found it. I would like to share it with you.
Solution for 404 Error.
1) create .htaccess file (if not exsist).
2) add these lins in .htaccess file.
## Uncomment (remove # ONLY NOT ##) line below if installed in folder and add folder name after /
## Example: Script is installed in /public_html/short/ then it should be: Rewritebase /short
## Then the files below should be (add slash to all): /index.php?action=$1
## Uncomment the code below to Use PHP 5.4
# AddHandler application/x-httpd-php54 .php
Options -MultiViews
RewriteEngine On
## Uncomment the following line to use the multi-domain feature
# RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC]
# RewriteRule ^(.*)$
http://yourfirstdomain.com/$1 [R=301,L]
Rewritebase /
## Admin Panel
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.*)?$ admin/index.php?a=$1 [QSA,NC,L]
## Sitemap ###
RewriteRule ^sitemap.xml$ sitemap.php
## Application Handler
RewriteBase /domain.com
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)?$ /index.php?a=$1 [QSA,NC,L]
## Error 404 ##
ErrorDocument 404 /index.php?a=404
That's it. If you guys have any questions or need any help, feel free to PM me.