views:

32

answers:

2

I made some pages in Wordpress and displayed a navigation so the user can click to go to those pages.

When you click on any of the links, other than the Home link, it will go to a 404 Page not Found Page and display a message as the one below:

The requested URL /new_mtt/about-us-2 was not found on this server.

I realized I don't have a page.php file. Do I need that in order to view pages other than the index?

Why are my pages not working correctly?

+1  A: 

There has to be a .htaccess-file in your Wordpress-directory. In there should be the rules for url rewriting. The problem could be: that file is missing, the file is corrupt or mod_rewrite is not allowed.

alopix
Yes, I have an .htaccess file in my general wordpress folder but not in the folder where my index.php file is. Where does it need to be?
zeckdude
Check on your Wordpress-Adminpage for something like `If your .htaccess file were writable, we could do this automatically...` on Settings > Permalinks panel.
alopix
+1  A: 

You most likely need to regenerate your permalinks -- that solves the problem around 90% of the time. Click on Settings, Permalink; then pick any option that's not selected, hit Save, pick the option you originally wanted again (likely a custom structure with %postname%), hit save again, and verify that it saved.

If it can't save, as with the previous answer, make sure you check that your .htaccess file has global write access.

ashes999