I have installed wordpress several times before but I could not fix 404 error on my permalink this time. :S I tried everything I could search to fix it but I still need some help!
Environment:
Ubuntu 14.04
My wordpress files are located in a virtual host folder
/home/site.com/www
in apache2.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
in site.com.config
<VirtualHost *:80>
DocumentRoot "/home/site.com/www"
ServerName www.site.com
<Directory "/home/site.com/www">
allow from all
Options None
Require all granted
</Directory>
</VirtualHost>
in .htaccess
# 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
rewrite mod is running
and apache2 was restarted.
But the browser still shows 404 error..
Please give me some tips!!
]]>When I changed my site’s permalinks to postname:
/%postname%/
i got this error when opening any page or post: Error occurred: 404 – not found
I have tried to delete the .htaccess -file and to change the permalink-setting, clicked save and changed it again to postname and clicked save. After this the .htaccess-file is created again:
# 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
But this does not help. I have also changed back to Twenty fourteen -theme and deactived all the plugins and created a new .htaccess -file after this. Still no success. I also tried to rename the plugin-folders.
Any ideas what to try next?
]]>stepquick asked me “What happens when you use the default permalinks?”
I replied “When I change to default permalinks, all my posts, categories and tags show me 404 Not Found”
But actually when I change back to default permalinks everything works fine.
Could anyone help me?
My blog https://everygamingnews.com
]]>I have created a website using the wordpress (new to wp),it is basically
a affiliate site and not a blog in my site I have added 5 separate page
and set one of the page as front page/home page all the 5 pages are shown in the menu bar.But only home page is shown propely rest of the page I am getting 404 page not found message.
my settigs
Permalink ” /%postname%/”
number of pages 5
page 1 is set as home page by going to settings > reading > staticpage >page 1
rest of the 4 pages published but shown in the menu bar but not able to navigate to it shows message 404 not found.
Please help me with this
Thanks
Bob
I’m not sure why this only happens for posts but not pages and have reviewed the Permalink codex as I assume this where the solution lies?
Thanks in advance.
]]>