From d5a2ed2f10824b7320652ee1cc636e2fb8cc078a Mon Sep 17 00:00:00 2001 From: Kin Blas Date: Tue, 9 Nov 2010 13:58:28 -0800 Subject: [PATCH] Fixed 413 - Dev issue: our .htaccess file on the server is doing a 301 redirect which is causing css and image loading issues. - Switch to using a combine.php library and index.php scripts within each directory for combining files. This works around the iOS webkit bug that prevents images from being displayed the next time the page is loaded. --- .htaccess | 3 +- combine.php | 217 +++----------------------------------- js/index.php | 30 ++++++ themes/default/index.php | 23 ++++ themes/valencia/index.php | 23 ++++ 5 files changed, 91 insertions(+), 205 deletions(-) create mode 100644 js/index.php create mode 100644 themes/default/index.php create mode 100644 themes/valencia/index.php diff --git a/.htaccess b/.htaccess index c3f23d80..e0acf333 100644 --- a/.htaccess +++ b/.htaccess @@ -2,8 +2,7 @@ Options +FollowSymLinks RewriteEngine On -RewriteRule ^themes/([a-zA-Z\-\_\0-9]+)\/$ combine.php?type=css&theme=$1 -RewriteRule ^js/all combine.php?type=javascript +RewriteRule ^js/all$ js # Turn on Expires and set default to 0 ExpiresActive On diff --git a/combine.php b/combine.php index 74d6cb31..c70c6bca 100644 --- a/combine.php +++ b/combine.php @@ -1,207 +1,18 @@ \ No newline at end of file diff --git a/js/index.php b/js/index.php new file mode 100644 index 00000000..b620444a --- /dev/null +++ b/js/index.php @@ -0,0 +1,30 @@ + diff --git a/themes/default/index.php b/themes/default/index.php new file mode 100644 index 00000000..969ac5a7 --- /dev/null +++ b/themes/default/index.php @@ -0,0 +1,23 @@ + diff --git a/themes/valencia/index.php b/themes/valencia/index.php new file mode 100644 index 00000000..763efc4f --- /dev/null +++ b/themes/valencia/index.php @@ -0,0 +1,23 @@ + \ No newline at end of file