Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
clean urls working
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddeusmt committed Sep 17, 2011
1 parent 8015d3f commit af9a899
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit af9a899

Please sign in to comment.