Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM .htaccess and existing folders
#1
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
Reply
#2
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
Reply
#3
see https://github.com/GetSimpleCMS/GetSimpleCMS/issues/940
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#4
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
Reply
#5
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)