Wordpress Permalinks not working

I moved my site from slichost to Amazon ec2. After moving, I made the necessary settings for wordpress. My first page for Wordpress works fine, but permalinks don't work. Can someone please let me know what changes are needed to make permalinks work.

thank

+5
source share
8 answers

Check the apache configuration and make sure that the following parameters are included for the directory in which you store the Wordpress installation (you may have more configuration parameters for a specific directory, but this is the minimum required for unusual Wordpress permalinks):

<Directory var/www/>
Options FollowSymLinks
AllowOverride All
</Directory>
+6

linux WordPress, , .

  • .htaccess , , Krige.
  • mod_rewrite apache, , .
  • apache FollowSymLinks AllowOverride All /var/www/, Cninroh. /etc/apache 2/sites-enabled/000-default , .
+4

.htaccess wordpress :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

+1

:

  • wp-admin
  • | Permalinks - .
  • | Permalinks

, , .

+1

index.php/ .

0

apache , , , , apache mod_rewrite. AMI Amazon, , :

  • apache mod_rewrite.

    a2enmod rewrite

  • Reboot server

    Aa

0
source

When you set the permalinks parameter to a different default value, the following code is already sent to the .htaccess file.

 # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /callerdb/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /callerdb/index.php [L]
</IfModule>

# END WordPress

But this will not help, as you already know.

So, this will work if you set rewrite_module , this can be done by going to the "fix permissions" if available in your cpanel, or you can contact your host.

0
source

All Articles