The following files exists in this folder. Click to view.
.htaccess_wwwstudent1 lines ASCII Unix (LF) #
# This is a modified rewrite to fit Anax when working on both local development
# environment and publishing to www.student.bth.se.
#
# Do NOT forget to change /~mosstud/ to your own student acronym.
#
RewriteEngine on
# Igore real files (images, stylesheets etc.)
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule (.*) - [NC,L]
# Rewrite 1 - For request via www.student.bth.se
RewriteCond %{HTTP_HOST} ^www\.student\.bth\.se$ [NC]
#RewriteRule ^image/(.*)$ /~mosstud/kod-exempel/anax-flat/htdocs/cimage/imgd.php?src=$1 [QSA,NC,L]
RewriteRule ^image/(.*)$ /~mosstud/dbwebb-kurser/design/me/anax-flat/htdocs/icimage/imgd.php?src=$1 [QSA,NC,L]
RewriteCond %{HTTP_HOST} ^www\.student\.bth\.se$ [NC]
#RewriteRule (.*) /~mosstud/kod-exempel/anax-flat/htdocs/index.php/$1 [NC,L]
RewriteRule (.*) /~mosstud/dbwebb-kurser/design/me/anax-flat/htdocs/index.php/$1 [NC,L]
# Rewrite 2 - For other requests
RewriteCond %{HTTP_HOST} !^www\.student\.bth\.se$ [NC]
RewriteRule ^image/(.*)$ cimage/imgd.php?src=$1 [QSA,NC,L]
RewriteCond %{HTTP_HOST} !^www\.student\.bth\.se$ [NC]
RewriteRule (.*) index.php/$1 [NC,L]