Reputation: 16163
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?
Upvotes: 0
Views: 2358
Reputation: 10163
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.
Upvotes: 2
Reputation: 1788
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.
Upvotes: 2