Permalinks not working after Migration – AllowOverride All, htaccess set

admin2025-06-06  5

I'm at my wits end, I migrated a website onto a different server and after a lot of setting up I finally have it where it works – kinda. The Permalinks are broken and throw errors that the site can't be found.

Inside the httpd.conf I set the right (I think) settings:

<Directory /opt/wordpress>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
</Directory>

The htaccess is there and writeable by WP

# 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>

But I can't seem to get them to work, all searching left me at this dead end. Any help is greatly appreciated.

The server is running Apache on CentOS, running PHP7 if that matters somehow.

I'm at my wits end, I migrated a website onto a different server and after a lot of setting up I finally have it where it works – kinda. The Permalinks are broken and throw errors that the site can't be found.

Inside the httpd.conf I set the right (I think) settings:

<Directory /opt/wordpress>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
</Directory>

The htaccess is there and writeable by WP

# 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>

But I can't seem to get them to work, all searching left me at this dead end. Any help is greatly appreciated.

The server is running Apache on CentOS, running PHP7 if that matters somehow.

Share Improve this question asked Nov 8, 2018 at 23:35 Günther FeldbaumerGünther Feldbaumer 1 1
  • Did you change the domain name? Did you copy all assets (including the uploads folder where all media is stored)? Did you follow standard guidance on moving a site (see the Codex)? – Rick Hellewell Commented Nov 9, 2018 at 1:59
Add a comment  | 

1 Answer 1

Reset to default -1

I feel stupid but I didn't realize the httpd.conf loads another config at a later point where it was configured to override AllowOverride again. Changed it there to All and it worked, thank you!

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749194635a317155.html

最新回复(0)