Results 1 to 1 of 1
-
31st Jul 2012, 06:01 PM #1OPRespected DeveloperWebsite's:
X4B.org.htaccess gurus
Ok, I havent done a .htaccess in years (nginx FTW). Anyway anyone here able to improve my .htaccess, it doesnt allways work atm and is just generally bad.
Logic:
1. If file exists in /static/ service
2. If path is /system/ or /app/ serve from within /system/ or /app/
2. Else send to /system/bin/handle.php
Current attempt
Code:Options +FollowSymLinks +ExecCGI <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} ^(?!/static/).+ [NC] RewriteCond %{DOCUMENT_ROOT}/static/$1 -f RewriteRule ^(.*) %{DOCUMENT_ROOT}/static/$1 [L] RewriteCond %{REQUEST_URI} ^(?!/system/).+ [NC] RewriteCond %{REQUEST_URI} ^(?!/static/).+ [NC] RewriteRule ^(.*)$ system/bin/handle.php [QSA,L] </IfModule>
SplitIce Reviewed by SplitIce on . .htaccess gurus Ok, I havent done a .htaccess in years (nginx FTW). Anyway anyone here able to improve my .htaccess, it doesnt allways work atm and is just generally bad. Logic: 1. If file exists in /static/ service 2. If path is /system/ or /app/ serve from within /system/ or /app/ 2. Else send to /system/bin/handle.php Current attempt Options +FollowSymLinks +ExecCGI Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
So do we have any social marketing gurus on board?
By Capone in forum Webmaster DiscussionReplies: 11Last Post: 6th Oct 2012, 07:32 AM -
.htaccess help.!
By vorazeal in forum Webmaster DiscussionReplies: 1Last Post: 25th Dec 2010, 05:59 PM -
.htaccess help
By FancyPants in forum Server ManagementReplies: 1Last Post: 16th Dec 2010, 03:56 AM -
For All PHP Gurus
By Benign in forum Technical Help Desk SupportReplies: 1Last Post: 22nd Apr 2010, 11:37 PM -
looking for gurus & partners be with me
By recep in forum Community CooperativeReplies: 3Last Post: 11th Jun 2009, 03:40 PM
themaPoster - post to forums and...
Version 5.19 released. Open older version (or...