Wordpress with friendly URLs - Apache error - How to solve?

2

I'm having problems with Wordpress with friendly URLs. It simply does not work even using the .htaccess file suggested by the Wordpress support site.

cat .htaccess 

# 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

I believe the error is in the Apache setting. Any ideas how to resolve this?

    
asked by anonymous 14.06.2014 / 19:03

1 answer

5

Check your file /etc/apache2/httpd.conf with the following conditions:

  • The line below must be uncommented

    LoadModule rewrite_module libexec/apache2/mod_rewrite.so

  • The lines that define whether .htaccess can be overridden by local settings for specific content is usually set to AllowOverride None you should change to:

    AllowOverride All

  • Make sure that RewriteEngine appears in the file as below:

    RewriteEngine on

  • Keep in the root directory of your .htaccess setting correctly described in your question.

  • That's all.

        
    14.06.2014 / 19:17