Recreating Live site on your local server
Troubleshooting
Task: recreate live site on desktop server for development purposes
Problem: clean urls not working
1. Make sure that mod_rewrite is enabled on your server
Go to httpd.conf file and uncomment this line:
LoadModule rewrite_module modules/mod_rewrite.so
2. If you copied all the files from the live site directly to your local server, you may have
copied over the .htaccess file as well. This file applies specifically to your live server so it
will most likely not work properly on your local server. You will need to delete this .htaccess file and replace it. Or this file may not have been copied since it may be considered a hidden file by the live server.
Drupal comes with a default .htaccess file. You will need to get a fresh Drupal install and copy the .htaccess file over to your new site.
3. Some people suggest turning off clean-url's before exporting the database, then turning it back on after migrating. If this is the case, use this path to login: yourdomain.com/?q=user
After you get the clean urls working and enabled, you can turn Clean URLs back on.
- 30 reads
Post new comment