For some reason out of nowhere, when I created a new page and tried to view it, I got a 404 page error. Then I tried to visit pages I had made previously and all of them are also getting 404 errors. I have no clue what’s causing this or why it’s happening… it just started happening out of nowhere.. I published a new page after a fresh installation and when I visited it I got a 404 error… then the sample page stopped working too.. it’s something to do with the theme because I’ve tested other WP installations with different themes and they work just fine.
Anybody know what could be causing something like this?
Could it be the .htaccess file?
I’m not sure…
I don’t see how it could be since it’s just the sites using this certain theme. The changes to .htaccess that I’ve made were just to make multisite work… here’s what I have:
RewriteEngine On
RewriteBase /themes/
RewriteRule ^index\.php$ - [L]
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
Anything look wrong here?
When I change the permalink to the default (?page_id=1) it works just fine… when I change it to anything different, the pages will work again until I create another page, then I get 404 again…
weird. I come from an Expression Engine background and I found that 9 times out of ten it’s usually the .htaccess file that is the culprit but I am still learning Wordpress, so can’t be much help. Maybe try re-installing the theme.
Btw, great themes you have….with the full background photos.
AionCreative said
weird. I come from an Expression Engine background and I found that 9 times out of ten it’s usually the .htaccess file that is the culprit but I am still learning Wordpress, so can’t be much help. Maybe try re-installing the theme. Btw, great themes you have….with the full background photos.
Thanks 
After testing a bit more, after I get the 404 error, if I activate another theme (I’ve tried classica, infocus, striking, karma) on all of them all pages show the homepage instead of their actual page content…. I have no clue what’s going on =/
This ever happened to anybody?
It also only happens with pages… i can publish a new post and visit it just fine, then when i create a new page I get a 404 error for the page and for the post… but category pages work fine… still have no idea what could be causing this
has nobody had a problem like this before?
The problem only happens on multisite. When I use the theme on the base site for multisite, it works just fine.. if I create another site on the network and use the theme on that one, as soon as i create a page I get a 404…
Anybody ever had this problem?
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Contributed a Blog Post
- Author was Featured
- Item was Featured
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Has been a member for 4-5 years
Yer had a similar issue before.
Go to Settings > Permalinks and change it back to “default”.
If “default” doesn’t work try a few other ones, or enter a custom structure like /%post_id%/%postname%/
Default works fine but I need my users to be able to use any permalink structure that they want so I need another solution =/
