开发者

WP - Developing Locally, cant navigate to pages (trying to go up 1 director for index.php)

I am by no means a WP expert, although I am goo开发者_高级运维d at PHP (Dont like using these constricting frameworks).

I am revamping the theme of the blog I obtained, and I am doing some custom coding and styling etc. I made a local copy of the site http://localhost/site/ to develop with until I am comfortable uploading it live. Also, I created a local DB so I could set the url etc of the local site.

The main page loads http://localhost/site/ but when i try to navigate to a page in the site for instance http://localhost/site/about-us it says index.php cannot be found. I noticed when i put an index.php file in the http://localhost/ directory, for some reason it tries to load that page.

I have edited the .htaccess to have a rewritebase of /site/ but it still does not work.

Any suggestions? Something I am missing?


  • Depending on the /wordpress folder location, you might need to configure your index.php file: please see http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  • Check on General Settings your "WordPress address" and "Site address" fields, should have your local environment's values.


Maybe your server is ignoring htaccess or you don't have mod_rewrite enabled on your server?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜