Pannous

Pannous Git Source Tree

Root/public/.htaccess

1# Multiple Environment config, set this to development, staging or production
2# SetEnv FUEL_ENV production
3
4<IfModule mod_rewrite.c>
5
6RewriteEngine on
7
8# NOTICE: If you get a 404 play with combinations of the following commented out lines
9#AllowOverride All
10#RewriteBase /wherever/fuel/is
11
12 # Make sure directory listing is disabled
13Options +FollowSymLinks -Indexes
14
15# Restrict your site to only one domain
16# !important USE ONLY ONE OPTION
17
18# Option 1: To rewrite "www.domain.com -> domain.com" uncomment the following lines.
19#RewriteCond %{HTTPS} !=on
20#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
21#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
22
23# Option 2: To rewrite "domain.com -> www.domain.com" uncomment the following lines.
24#RewriteCond %{HTTPS} !=on
25#RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
26#RewriteCond %{HTTP_HOST} (.+)$ [NC]
27#RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
28
29# Remove index.php from URL
30#RewriteCond %{HTTP:X-Requested-With}!^XMLHttpRequest$
31#RewriteCond %{THE_REQUEST}^[^/]*/index\.php [NC]
32#RewriteRule ^index\.php(.*)$$1 [R=301,NS,L]
33
34 # make HTTP Basic Authentication work on php-fcgi installs
35 <IfModule mod_fcgid.c>
36 RewriteCond %{HTTP:Authorization} .
37 RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
38 </IfModule>
39
40# Send request via index.php if not a real file or directory
41RewriteCond %{REQUEST_FILENAME} !-f
42RewriteCond %{REQUEST_FILENAME} !-d
43
44# deal with php-fcgi first
45<IfModule mod_fcgid.c>
46 RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
47</IfModule>
48
49# no php-fcgi, check for sapi and fpm
50<IfModule !mod_fcgid.c>
51
52# for PHP5 sapi installations
53<IfModule mod_php5.c>
54RewriteRule ^(.*)$ index.php/$1 [L]
55</IfModule>
56
57<IfModule !mod_php5.c>
58
59# for PHP7 sapi installations
60<IfModule mod_php7.c>
61RewriteRule ^(.*)$ index.php/$1 [L]
62</IfModule>
63
64# for fpm installations
65<IfModule !mod_php7.c>
66RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
67</IfModule>
68
69</IfModule>
70
71</IfModule>
72
73</IfModule>

Archive Download this file

Branches