Created
September 17, 2016 21:50
-
-
Save wohhie/d360e2d385ddd902e6c213d300804776 to your computer and use it in GitHub Desktop.
1and1 solution for htaccess file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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