Skip to content

Instantly share code, notes, and snippets.

@wohhie
Created September 17, 2016 21:50
Show Gist options
  • Save wohhie/d360e2d385ddd902e6c213d300804776 to your computer and use it in GitHub Desktop.
Save wohhie/d360e2d385ddd902e6c213d300804776 to your computer and use it in GitHub Desktop.
1and1 solution for htaccess file.
<IfModule mod_rewrite.c>
RewriteBase /
Options -MultiViews
RewriteEngine On
#1and1 to enable PHP 5.4
AddHandler x-mapp-php6 .php
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /index.php [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment