aMerovingian/GuruFactor/master/.htaccess - Htaccess File

aMerovingian/GuruFactor/master/.htaccess

RewriteEngine on
Options -Indexes
Options +FollowSymLinks

#if we develop the app/site on different servers/folders -> add condition here 
#by using this we dont have to modify the htaccess file while working on different servers
RewriteRule  .? - [E=FOLDER:,NS]
RewriteCond %{REQUEST_URI} ^/thecodegene
RewriteRule  .? - [E=FOLDER:/thecodegene,NS]

# setts the error document
ErrorDocument 404 /index.php?page=404

 
# access fb request from everywhere
RewriteRule ^(.*)xd_receiver(.*)$                               %{ENV:FOLDER}/xd_receiver.php [NC,L]

#rewrite all paths used by the framewrok
RewriteRule ^library/(.*)$                            %{ENV:FOLDER}/GuruFactor/components/pages/$1
RewriteRule ^pimages/(.*)$                               %{ENV:FOLDER}/GuruFactor/factors/ImageOperations/$1
RewriteRule ^module/(.*)$                            %{ENV:FOLDER}/GuruFactor/Modules/$1
RewriteRule ^manage/module/(.*)$                        %{ENV:FOLDER}/GuruFactor/Modules/$1
RewriteRule ^decorator/(.*)$                           %{ENV:FOLDER}/GuruFactor/components/design/$1
RewriteRule ^operations/(.*)$                          %{ENV:FOLDER}/GuruFactor/components/pages/calls/$1
RewriteRule ^redundancy/(.*)$                              %{ENV:FOLDER}/manage/$1

#if a extension is not in the below list -> it will be rewritten -> if the module is used
RewriteCond  %{REQUEST_URI}  !(.php|.css|.js|.png|.jpg|.ico|.gif|.flv|.swf|.gif|.xml|.html|.htm|.pdf|.eot|.svg|.ttf|.woff|.log|app/$)   
RewriteRule   .                                                %{ENV:FOLDER}/index.php?page=gf_rewrite [NC]

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_URI

Comments

Apache