permalink not working after migration to localhost
-
I’m hosting a wordpress 3.9.3 on a web server (one.com) and decided to create sandbox on my localhost which is Linux Mint 17.1 Mate 64 bit.
I did the following:
1. Installed apache 2.4.7, mysql (Client API version => 5.5.41) and php 5.5.9-1ubuntu4.6.
2. Got a database dump and wp-content files.
3. Restored the database locally and put the wp-content files in place.
3b. Edited wp0_options where option_name is siteurl and home to fit the local url (https://prod.wp.ellevator.local).
4. Got my local site up and running locally – it works fine with settings-permalink set to default
5. However, the permalinks with “post name” don’t work the way they did on the original host.
6. I granted everyone write acces to the virtual host directory, and wordpress created an .htaccess file with the code below.
7. I restarted the apache2 service.
8. The problem persists.
9. I figured out that mod_rewrite was not enabled and did this as root:
a2enmod rewrite
/etc/init.d/apache2 restart
10. The problem persists..htaccess file content:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Any suggestions?
- The topic ‘permalink not working after migration to localhost’ is closed to new replies.