The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
PROBLEM .htaccess and existing folders - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5) +--- Thread: PROBLEM .htaccess and existing folders (/showthread.php?tid=7696) |
.htaccess and existing folders - harrisc - 2015-11-07 Hi I have installed GS in my root directory and using Fancy URLS. GS works as expected. I have a problem with existing folders and add-on domains. I have existing directories outside of GS that I want to access directly. The .htaccess file rewrites all directory URL, existing or not. How can I rewrite .htaccess to test if directory exists; if so do not rewrite.. If directory does not exist, rewrite as existing file. Any suggestions? Chris RE: .htaccess and existing folders - Carlos - 2015-11-07 Does your .htaccess file (in the root of your GS site) have these lines before the RewriteRule? Code: RewriteCond %{REQUEST_FILENAME} !-f RE: .htaccess and existing folders - shawn_a - 2015-11-08 see https://github.com/GetSimpleCMS/GetSimpleCMS/issues/940 RE: .htaccess and existing folders - harrisc - 2015-11-11 My .htaccess file does have RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d and in it and it does not work. I looked at https://github.com/GetSimpleCMS/GetSimpleCMS/issues/940 and tried vaies options but still could not get it to work. I am on shared hosting with Apache Version 2.4.16. Any further suggestions? Thanks Chris RE: .htaccess and existing folders - shawn_a - 2015-11-12 did you try RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d in place of the included rules only other option is to enable logging and see whats going on with your paths |