Files
pae.co.at/trunk/htdocs/.htaccess_old
2017-03-02 21:57:21 -06:00

36 lines
1.1 KiB
Plaintext

DirectoryIndex index.html
ErrorDocument 500 "<h2>Application
Options +ExecCGI +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
# redirecting for jasoc.org (Jairus Society)
RewriteCond %{HTTP_HOST} ^(www\.)?jasoc\.org$ [NC]
RewriteCond %{REQUEST_URI} !^/jairussociety
RewriteRule ^(.*)$ /jairussociety/$1 [NC,L]
# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /
# we skip all files with .something
# comment the following 3 lines to allow periods in routes
RewriteCond %{REQUEST_URI} !^/jairussociety
RewriteCond %{REQUEST_URI} \..+$
RewriteCond %{REQUEST_URI} !\.html$
RewriteRule .* - [L]
# we check if the .html version is here (caching)
RewriteCond %{REQUEST_URI} !^/jairussociety
RewriteRule ^$ index.html [QSA]
RewriteCond %{REQUEST_URI} !^/jairussociety
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_URI} !^/jairussociety
RewriteCond %{REQUEST_FILENAME} !-f
# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# big crash from our front web controller