php - Posts not accessible on a local copy of production Wordpress -


i in process of replicating production wordpress website on local system. while able access home page, posts , other links not accessible , error

the requested url not found on server.

this local wordpress has been set on:

  1. apache 2.4
  2. php 5.6

copy of .htaccess:

# 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 

rewrite_module modules/mod_rewrite.so has been enabled.

let me know if details needed.

what understand comments , post have setup wordpress in localhost , access through http://localhost/my_site my_site directory name under xampp/htdocs (if using xampp). need reverse of mentioned in this tutorial.

you need set .htaccess as

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase /my_site/ rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /my_site/index.php [l] </ifmodule> # end wordpress 

please note: replace my_site directory name. , reset permalink form backend admin panel.

hope helps!


Comments