Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
  • Download a copy of development site (in wordpress) + the database into my local machine
  • I reconfigured site_url & home in database
  • The url is myhost/wordpress

  • htaccess file:


RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]

  • I use permalink link: myhost/wordpress/%category%/%postname%/

  • Issue: the admin end seems working, but the non of the urls are working. It gives me 404 error.

Update: I solved it by adding "AllowOverride All" to apache config. It was changed back to default after upgrade. The lesson for me is: I should look around myself, rather than go too far away from the problem.

share|improve this question
    
Try changing every URL in database. Use can use find and replace. –  enthusiastic Apr 10 '13 at 6:26
    
Try deleting your current .htaccess and let WordPress create one for you when you save your permalinks structure. Changing "every url in the database" won't fix that problem IMHO. –  RRikesh Apr 10 '13 at 7:40
    
I tried to delete .htaccess, but no luck. Same .htaccess is generated. I did a find and replace in db, but no luck. The hierarchy for me: localhost/parent-page-1/parent-page-2/the-actual-page, so the permalink is localhost/wordpress/%category%/%postname%/ (Is it correct?) If I permalink to localhost/wordpress/?p=123, this works, but is not I want –  kenpeter Apr 10 '13 at 13:57

1 Answer 1

You can open your database in a text editor and make a search and replace in the database. You have to change developmentsite.com for localsite.com. This method usually gives problems with theme options and widgets settings. To avoid these problems you can use the plugin http://wordpress.org/extend/plugins/duplicator/. This has given me excellent results.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.