Permalinks overwritting .htaccess on 1and1 hosting
-
I am on 1and1 hosting and need to run PHP5 for some plugins and would like to use the auto-upgrade. So I added the
AddType x-mapp-php5 .phpTo the top of the .htaccess file so it looks like:
AddType x-mapp-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
When I save this all the pretty permalinks break and are taken to a server 404 page (not the 404 page defined in the template). But PHP5 does run now.
The only way to fix this is to resave my permalink settings which it looks like overwrites the .htaccessfile and so it removes the PHP5 declaration.
So it seems like I can either have pretty permalinks OR php5 on 1and1 hosting. Any solutions?
- The topic ‘Permalinks overwritting .htaccess on 1and1 hosting’ is closed to new replies.