WP simple pages are all 404
Whenever I create a "page" in WP, a link automatically gets added to the top navigation and all pages are 404. At the moment this is a simple test site, using the standard theme and relevant plugins: qtranslate and advanced custom fields. I have some custom templates but for "posts" and not "pages".
EDIT: If i reset the permalink structure to the default /?p=123, then my url is domain.com?page_id=15&lang=en and this is still 404
EDIT2: .htaccess content
# 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
How would one start debugging开发者_C百科 this?
- First Try to set the permalink settings to the default value (www.yoursite.com/?id=123).
- Now try to change it back something else.
- If you still get 404 pages, choose the default permalinks option again, delete your .htaccess file (make sure you back it up first and have a copy!!!) and try option 2 again.
If it still does not work, and you are using a new server setup, the server might actually ignore your .htaccess file.
You can check it by locating your httpd.conf file on the apache server, and find if there is a line:
AllowOverride None
If the context of this line is specific for your wordpress public directory, you can change it to AllowOverride All.
See this answer for some more info.
加载中,请稍侯......
精彩评论