Skip to content

Commit

Permalink
Fixing the default .htaccess file. The html pages of javadoc were not…
Browse files Browse the repository at this point in the history
… being served

git-svn-id: http://umple.googlecode.com/svn/trunk@3073 6ebf9d09-8eb1-0036-9d08-68c07d1b990a
  • Loading branch information
TimLethbridge committed Sep 28, 2013
1 parent ed780e6 commit 30d2cad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion umpleonline/.htaccess
@@ -1,2 +1,11 @@
RewriteEngine on
RewriteRule ^(.*)\.html $1\.php
#RewriteRule ^(.*)\.html $1\.php

# parse out basename, but remember the fact
RewriteRule ^(.*)\.html$ $1 [C,E=WasHTML:yes]
# rewrite to document.php if exists
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [S=1]
# else reverse the previous basename cutout
RewriteCond %{ENV:WasHTML} ^yes$
RewriteRule ^(.*)$ $1.html

0 comments on commit 30d2cad

Please sign in to comment.