View Single Post
Old 01 Aug 2016, 23:43
Mondi Mondi is offline
Join Date: Sep 2006
Cool Installation under SilverStripe | incorrect .htaccess redirect?

Hi all -

We installed vB5.2.2. under a Silverstripe installation in a '/community' folder, which should give members access to our forum following

However, Silverstripe's .httaccess presumably appends this url incorrectly to which, of course, makes the forum inaccessible. Although this question should perhaps better be asked at Silverstripe communities I am just wondering whether one of you are much cleverer than I am with .htaccess structures and contents and could possibly help me pull this redirect issue back on track..?

**** SS .htaccess contents *****

# Deny access to templates (but allow from localhost)
<Files *.ss>
Order deny,allow
Deny from all
Allow from

# Deny access to IIS configuration
<Files web.config>
Order deny,allow
Deny from all

# Deny access to YAML configuration files which might include sensitive information
<Files *.yml>
Order allow,deny
Deny from all

# Route errors to static pages automatically generated by SilverStripe
ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html

<IfModule mod_rewrite.c>

# Turn off index.php handling requests to the homepage fixes issue in apache >=2.4
<IfModule mod_dir.c>
DirectoryIndex disabled

RewriteEngine On
RewriteBase '/'

# Deny access to potentially sensitive files and folders
RewriteRule ^vendor(/|$) - [F,L,NC]
RewriteRule silverstripe-cache(/|$) - [F,L,NC]
RewriteRule composer\.(json|lock) - [F,L,NC]

# Process through SilverStripe if no file with the requested name exists.
# Pass through the original path as a query parameter, and retain the existing parameters.
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* framework/main.php?url=%1 [QSA]

***** end SS .htaccess contents *******

Many thanks in advance for your assistance!

Reply With Quote