GetSimple Support Forum

Full Version: .htaccess and existing folders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Does your .htaccess file (in the root of your GS site) have these lines before the RewriteRule?
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
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
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