Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress Permalinks not working

I moved my site from slichost to Amazon ec2. After moving i made necessary settings for wordpress. My first page for wordpress works fine, but the permalinks are not working. Can anyone please let me know what changes are necessary to make the permalinks working.

Thanks

like image 922
Atul Avatar asked Dec 01 '10 13:12

Atul


2 Answers

Check your apache configuration and verify that for the directory in which you store your Wordpress installation you have following settings enabled (probably you will have more configuration options for the specific directory, but these are the minimum required for Wordpress fancy permalinks):

<Directory var/www/>
Options FollowSymLinks
AllowOverride All
</Directory>
like image 108
Cninroh Avatar answered Sep 20 '22 01:09

Cninroh


After moving to a new linux host and installing a fresh wordpress, we had to make ALL of the following changes in order to enable pretty permalinks.

  1. Create .htaccess in the correct folder, containing the code as suggested by Krige.
  2. Enable mod_rewrite on apache, then restart the server, as suggested by Mike Lynn.
  3. Change the apache configuration to FollowSymLinks and AllowOverride All for /var/www/, as suggested by Cninroh. For us /etc/apache2/sites-enabled/000-default was the file we had to edit.
like image 34
ccsdg Avatar answered Sep 23 '22 01:09

ccsdg