Step1: Open the .htaccess file in Magento Root folder:
Step2: find the code in .htaccess file
#Rewrite Base /magento/ .
Just replace it with
Rewrite Base /
Step3: Put this Code to below this lines:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>