Report this

What is the reason for this report?

404 Error in Wordpress Posts & .htaccess Help!

Posted on July 19, 2015

Dear Friends,

I’m trying change rewrite files both in Apache file & Wordpress .htaccess. I’m following below guideline but not help. Website is accessible but not the post and other pages. Why?

https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_rewrite

Thank you,

root@XYZ:~$ sudo apt-get install apache2

[sudo] password for root:

Reading package lists... Done

Building dependency tree

Reading state information... Done

apache2 is already the newest version.

0 upgraded, 0 newly installed, 0 to remove and 69 not upgraded.

root@XYZ:~$ sudo nano /etc/apache2/sites-available/default
root@XYZ:~$ sudo service apache2 restart
 * Restarting web server apache2                                                
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This question was answered by @saurabh:

Have you checked if you have set the permalinks properly?

Also I assume that you have enabled mod-rewrite by running this command:

sudo a2enmod rewrite

Other than enabling mod-rewrite, you need to change your Apache config from

AllowOverride None

to

AllowOverride All

The above config can be found in /etc/apache2/apache.conf if you are on Ubuntu 14.04 or else it can be found in the /etc/apache2/sites-available/yoursitefile if you are on Ubuntu 12.04.

– Regards Saurabh

Servopia.com Managed Cloud Hosting For PHP Applications On DigitalOcean IaaS

View the original comment

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.