By freakyirish
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:
but when:
the result is:
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
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!
Can you pastebin the contents of <code>/etc/apache2/sites-available/default</code> and the .htaccess file?
Hi Kamal Nasser, <br>Thanks for your reply <br>here is the content of /etc/apache2/sites-available/default <br>******************************************** <br><VirtualHost :80> <br> ServerAdmin webmaster@localhost <br> <br> DocumentRoot /var/www <br> <Directory /> <br> Options FollowSymLinks <br> AllowOverride All <br> </Directory> <br> <Directory /var/www/> <br> Options Indexes FollowSymLinks MultiViews <br> AllowOverride All <br> Order allow,deny <br> allow from all <br> </Directory> <br> <br> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <br> <Directory “/usr/lib/cgi-bin”> <br> AllowOverride All <br> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch <br> Order allow,deny <br> Allow from all <br> </Directory> <br> <br> ErrorLog ${APACHE_LOG_DIR}/error.log <br> <br> # Possible values include: debug, info, notice, warn, error, crit, <br> # alert, emerg. <br> LogLevel warn <br> <br> CustomLog ${APACHE_LOG_DIR}/access.log combined <br> <br> Alias /doc/ “/usr/share/doc/” <br> <Directory “/usr/share/doc/”> <br> Options Indexes MultiViews FollowSymLinks <br> AllowOverride All <br> Order deny,allow <br> Deny from all <br> Allow from 127.0.0.0/255.0.0.0 ::1/128 <br> </Directory> <br> <br></VirtualHost> <br> <br>********************************* <br>and below is .htaccess <br> <br>******************************** <br><IfModule mod_rewrite.c> <br>RewriteEngine On <br>RewriteBase / <br>RewriteRule ^index.php$ - [L] <br>RewriteCond %{REQUEST_FILENAME} !-f <br>RewriteCond %{REQUEST_FILENAME} !-d <br>RewriteRule . /index.php [L] <br></IfModule> <br> <br>***********************
Try replacing <pre>RewriteRule . /index.php [L] </pre> with <pre>RewriteRule .* /index.php [L] </pre>
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.