Htaccess File

mark-94/UniFinalProj/master/.htaccess

ENV, REQUEST_FILENAME
RewriteEngine On
SetEnvIf Host www.example.com$ CI_ENV=production
SetEnvIf Host scm.ulster.ac.uk/~B00610820/FinalYearProj$ CI_ENV=testing
SetEnvIf Host localhost$ CI_ENV=development

#prepends index.php if the url isn't index.php/resource/robots.txt and doesn't point to a file or directory
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
Exit mobile version