From af9a899e57abf954d8fcc06de3ffb78421b45f8f Mon Sep 17 00:00:00 2001 From: Evan Johnson Date: Sat, 17 Sep 2011 10:00:44 -0500 Subject: [PATCH] clean urls working --- .htaccess | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..819f009 --- /dev/null +++ b/.htaccess @@ -0,0 +1,33 @@ +Options +FollowSymLinks + +IndexIgnore */* + +RewriteEngine on + + + +#Uncomment "RewriteBase /" when you upload this .htaccess to your web server, and comment it when on local web server + +#NOTE: + +#If your application is in a folder, for example "application". Then, changing the "application" folder name, will require you to reset the RewriteBase /[your app folder] + +#RewriteBase /[your app folder - optional] + + + +# if a directory or a file exists, use it directly + +RewriteCond %{REQUEST_FILENAME} -s [OR] + +RewriteCond %{REQUEST_FILENAME} -l [OR] + +RewriteCond %{REQUEST_FILENAME} -d + + + +# otherwise forward it to index.php + +RewriteRule ^.*$ - [NC,L] + +RewriteRule ^.*$ index.php [NC,L] \ No newline at end of file