By sensibull
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!
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 rewriteOther than enabling mod-rewrite, you need to change your Apache config from
AllowOverride Noneto
AllowOverride AllThe 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.