nice permalink does not work

March 5, 2014 2k views
droplet name: fatih1.kancingdoortrim.com IP Address: 128.199.220.172 Status: Active ----------------------------- Yesterday I moved my wordpress blog from old server to DO .. everything seems fine, the wordpress site is up and running well on homepage. But the nice permalink is not working, everytime I click link the result is 404. I saw the tutorial here: https://www.digitalocean.com/community/articles/how-to-use-the-htaccess-file already did this: 1. sudo nano /etc/apache2/sites-available/default 2. AllowOverride All were added but when: 3. sudo service apache2 start the result is: * Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using fatih1.kancingdoortrim.com for ServerName ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using fatih1.kancingdoortrim.com for ServerName and still the nice permalink will not work, even after I 'flush the rewrite rule' via wordpress' admin side. my site is: kancingdoortrim.com here is the record in 'Zone File' $TTL 1800 @ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.kancingdoortrim.com. ( 1393905335 ; last update: 2014-03-04 03:55:35 UTC 3600 ; refresh 900 ; retry 1209600 ; expire 1800 ; ttl ) IN NS NS1.DIGITALOCEAN.COM. NS NS2.DIGITALOCEAN.COM. NS NS3.DIGITALOCEAN.COM. @ IN A 128.199.220.172 Need help.. Thanks Irawan
6 Answers
Can you pastebin the contents of /etc/apache2/sites-available/default and the .htaccess file?
Hi Kamal Nasser,
Thanks for your reply
here is the content of /etc/apache2/sites-available/default
********************************************

ServerAdmin webmaster@localhost

DocumentRoot /var/www

Options FollowSymLinks
AllowOverride All


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

AllowOverride All
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

Alias /doc/ "/usr/share/doc/"

Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128




**********************************
and below is .htaccess

********************************

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


***********************
Try replacing
RewriteRule . /index.php [L] 
with
RewriteRule .* /index.php [L] 
just replaced with RewriteRule .* /index.php [L]
but the problem still persist..

It's working fine for me now, can you check again? Make sure you clear your browser's cache.
The nice permalink works fine after I write this command
sudo a2enmod rewrite

However it still says: "Could not reliably determine the server's fully qualified domain name, using fatih1.kancingdoortrim.com for ServerName"
after I execute this command:
sudo service apache2 start

what could be wrong, because kancingdoortrim.com is a FQDN

need help & thanks

Irawan
Have another answer? Share your knowledge.