I know there are many answers for this i tried all and not able to do it on my server hosted with godaddy magento latest version
I tried this
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
404 not found error for admin page
didn't work out
then
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
rm -rf var/cache/*
rm -rf var/generation/*
this dint work out
added httaccess to my root directory
https://github.com/emizentech/magento2/blob/master/.htaccess.sample
though it was not there still dint work out home page works fine as expected with no erros on it
but admin page says 404 error
domain.com/admin
Not Found
The requested URL /admin was not found on this server.
Apache/2.4.18 (Ubuntu) Server at 192.169.143.135 Port 80
If I added domain.com/index.php/admin
Not Found
The requested URL /admin/admin/index/index/key/be1e5947f83b71x354749eds3ba0aa7321a8a8d659aca49cc8a00fb4de1cc57ab956f/ was not found on this server.
Apache/2.4.18 (Ubuntu) Server at 192.169.143.135 Port 80
I enabled developer mode to
main.DEBUG: cache_invalidate: {"method":"GET","url":"http://192.169.143.135/index.php/admin/","invalidateInfo":{"tags":["interception","CONFIG"],"mode":"matchingTag"}} []


env.php– kunj Jun 03 '18 at 04:00http://192.169.143.135/index.phpORhttp://192.169.143.135/URL working? – kunj Jun 03 '18 at 09:17site http://cmcollective.net/magento/
– Shaik Jun 03 '18 at 10:55fineally this solved my problem
– Shaik Jun 03 '18 at 17:22