It's very simple.
In your project Directory, you have .htaccess file. open it and make the following changes. Its a hidden file.
- Modify the RewriteBase if you are using Drupal in a subdirectory or in a VirtualDocumentRoot and the rewrite rules are not working properly. For example if your site is at http://example.com/drupal uncomment and modify the following line:
Line 106 - RewriteBase /yourprojectname(project folder)
- If your site is running in a VirtualDocumentRoot at http://example.com/, uncomment the following line and modify: