Pretty permalinks – Apache configuration issue
-
Hi everyone,
I’m quite out of my depth with this topic (especially the apache server side), and have tried to fix this problem now for a while.
After reading and testing some things I think I have closed in on where the issue is.If I change to pretty permalinks – any standard setting I get this 404 error message:
The requested URL /slug-name/ was not found on this server.
Apache/2.2.16 (Debian) Server at https://www.website-adress.at Port 80So I checked the following things after some research:
- .htaccess file
- rewrite module in Apache is enabled
- FileInfo directives allowed (e.g. AllowOverride FileInfo or AllowOverride All) – here the problem lies I think
When setting to pretty permalinks the
.htaccess file looks like this:# 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
Checking the apache configuration with phpinfo();
shows that rewrite is enabled I think (?).
Under apache2handler >> Loaded Modules I can see mod_rewrite
– this means its activated right? (sorry about such a question but servers are a bit alien to me)Now I’ve found another configuration file on the apache server in this directory:
etc/apache2/sites-enabled/
Filename: 000-defaulthere I guess these settings interfere with the pretty permalinks:
DocumentRoot /chroot/blabla/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /chroot/blabla/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
Now I’m not sure what these settings do and if should just set AllowOverride to something else?
- The topic ‘Pretty permalinks – Apache configuration issue’ is closed to new replies.