The home page of my wordpress website seems to be displaying correctly but if you click through to any of the other pages I get the following error message:
Not Found
The requested URL /about was not found on this server.
Apache/2 Server at www.wildlionmedia.co.uk Port 80
I'm not sure whether it's a problem with the theme or the .htaccess file that is not being rewritten correctly.
http://www.wildlionmedia.co.uk/
Any ideas how I can resolve the issue?
# Switch rewrite engine off in case this was installed under HostPay.
RewriteEngine On
SetEnv DEFAULT_PHP_VERSION 53
DirectoryIndex index.cgi index.php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine Off
RewriteBase /wildlionmedia.co.uk/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wildlionmedia.co.uk/index.php [L]
</IfModule>
# END WordPress
in setting > permalinks wordpress set simple and test again.
change only .htaccess:
There is a trusted answer on the Wordpress website:
*Taken from here.
I got the same issue. My home page can be accessed but the article just not found on the server.
Go to
cpanel file manager > public_html
and delete.htaccess
.Then go to permalink setting in WordPress, set the permalink to whatever you want, then save. viola everything back to normal.
This issue occurred after I updated WordPress.
I am working on MacOS, following operation solved my problem:
I copied from : https://akrabat.com/setting-up-php-mysql-on-os-x-10-7-lion/
cd /etc/apache2
Give write permission the config file to root: sudo chmod u+w httpd.conf sudo vim httpd.conf
Find #LoadModule php5_module libexec/apache2/libphp5.so
and remove the leading #
Find #LoadModule rewrite_module libexec/apache2/mod_rewrite.so
and remove the leading #
Find AllowOverride None within the section and change to AllowOverride All so that .htaccess files will work.
Change permissions back: sudo chmod u-w httpd.conf
Restart Apache by running following in terminal:
sudo apachectl restart