.htaccess file is incomplete after fresh install
-
Hey there,
we just noted a problem we never had before. When we install a fresh WordPress on the same server we already host about 100 other installations the .htaccess file isn’t set up correctly.
We know the .htaccess as follows after a fresh installation:
# BEGIN WordPress # Die Anweisungen (Zeilen) zwischen <code>BEGIN WordPress</code> und <code>END WordPress</code> sind # dynamisch generiert und sollten nur über WordPress-Filter ge?ndert werden. # Alle ?nderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. <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
But in our current fresh installation the whole <IfModule>-Part is missing. Instead there are only the comments:
# BEGIN WordPress # Die Anweisungen (Zeilen) zwischen <code>BEGIN WordPress</code> und <code>END WordPress</code> sind # dynamisch generiert und sollten nur über WordPress-Filter ge?ndert werden. # Alle ?nderungen an den Anweisungen zwischen diesen Markierungen werden überschrieben. # END WordPress
We even deleted the whole installation and retried it – with no outcome. It stayed like this with the missing code part.
As said above: We host on the very same machine about 100 WordPress installations – and nowhere we have had this problem.
Additionally: When I try to add the <IfModule>-Part manually to the .htaccess file then web access to…
https://URL.TLD/admin
…isn’t routed to https://URL.TLD/wp-admin anymore. Instead the WordPress tries to open a page named /admin/ (that is of course not there).
As said: It is a completely fresh installation. Is anyone out there who has an idea what happens here and what we could try to investiagte to fix this issue?
PS: When we try to access https://URL.TLD/admin on another domain on the same server, it gets routed to /wp-admin/ without any problems – as it has always been.
Many thanks in advance for any help,
-doffine
- The topic ‘.htaccess file is incomplete after fresh install’ is closed to new replies.