The requested URL /about was not found on this server

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

Solutions

That's not a typical Wordpress rewrite block. This is:

# 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

See http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F

Where's my .htaccess file? WordPress's index.php and .htaccess files should be together in the directory indicated by the Site address (URL) setting on your General Options page. Since the name of the file begins with a dot, the file may not be visible through an FTP client unless you change the preferences of the FTP tool to show all files, including the hidden files. Some hosts (e.g. Godaddy) may not show or allow you to edit .htaccess if you install WordPress through the Godaddy Hosting Connection installation.

Creating and editing (.htaccess) If you do not already have a .htaccess file, create one. If you have shell or ssh access to the server, a simple touch .htaccess command will create the file. If you are using FTP to transfer files, create a file on your local computer, call it 1.htaccess, upload it to the root of your WordPress folder, and then rename it to .htaccess.

You can edit the .htaccess file by FTP, shell, or (possibly) your host's control panel.

The easiest and fastest thing to do it reset your permalinks in Dashboard>>Settings>>Permalinks and make sure .htaccess is writable so WordPress can write the rules itself.

And: are you aware you are calling index.cgi as your default document rather than index.php? That's wrong. Remove index.cgi. Or try removing the whole line, too, because defining a default doc on your server may not be needed.

If all above point not work. Then try this one. I tried it. It's working for me.

  1. Go /etc/httpd/conf/httpd.conf.
  2. Change the AllowOverride None to AllowOverride All.
  3. Restart the apache server.

UPDATE 2017

For new versions of apache the file is called apache2.conf

So to access the file, type sudo nano /etc/apache2/apache2.conf and change the correspondent line inside block <Directory /var/www >

It worked for me like this:

Go to Wordpress Admin Dashboard > “Settings” > “Permalinks” > “Common settings”, set the radio button to “Custom Structure” and paste into the text box:

/index.php/%year%/%monthnum%/%day%/%postname%/

and click the Save button.

I got this solution from this link

Similar questions

The requested URL /login was not found on this server
I'm trying to set up a local WP environment on my machine. My .htaccess file (which is in the same folder as my index.php file) looks like this: My MAMP database should be set up correctly Every time I try to view the site in my browser, I get: The requested URL /wordpress was not found on this server. My wp-config.php file looks like this: I haven...
WordPress : The requested URL /index.php was not found on this server
I'm working on a WordPress project with two languages in the public folder. I have two folders. First folder is "ar" at this link: http://www.gilenmobilya.com/ar/ And the second folder is "tr": http://www.gilenmobilya.com/tr Now when i open a post, for example this one: http://www.gilenmobilya.com/tr/2017/03/21/ozel-siparisler/ I get this message: ...
"The requested URL /projectname/pagename/ was not found on this server." issue on WordPress website
For my WordPress project, I am getting the error The requested URL /projectname/pagename/ was not found on this server. when I try to set the permalink to Postname: http://10.60.8.118/projectname/sample-post/. The project is hosted on my Ubuntu machine. I am able to view the pages or posts with permalinks set as Plain: http://10.60.8.118/projectnam...
centos wordpress the requested URL was not found on this server,
I am trying to host my wordpress project in centos remotely, i have hosted it on /var/www/html and gave permission 777 for all sub folders and files, and changes and in .httpd file i have changed to all and also in have changed but not use the i am getting same internal server error, and The requested URL /l was not found on this server, but i can ...
The requested URL /wordpress/ was not found on this server
I am pretty new to wordpress i installed it on my system using this tutorial, everything worked and i got my wordpress working, i set up everything and shut down my system. when i restarted my system and visited http://localhost/wordpress/ i got this error After searching the internet for a while i have tried many fixes like going to: and changing ...
Wordpress Multi Pages- The requested URL was not found on this server
I install wordpress for my server. I can access without any problem. I need a different wordpress page. But I have only one server. I install again wordpress in /var/www/voltran. (I also create voltran folder under /var/www/html/ and linked it like voltran -> /var/www/voltran/. I am trying to connect as http://104.240.163.37/voltran. But it doesnt ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.