Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8059357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:38:58+00:00 2026-06-05T09:38:58+00:00

Ok, basically I need to be able to set my .htaccess so that it

  • 0

Ok, basically I need to be able to set my .htaccess so that it works for SilverStripe install in root directory and blogs installed in the /blogs directory. Here is what I have:

### SILVERSTRIPE START ###
<Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Files>

<Files web.config>
    Order deny,allow
    Deny from all
</Files>

ErrorDocument 404 /assets/error-404.html
ErrorDocument 500 /assets/error-500.html

<IfModule mod_alias.c>
    RedirectMatch 403 /silverstripe-cache(/|$)
</IfModule>

<IfModule mod_rewrite.c>
    SetEnv HTTP_MOD_REWRITE On
    RewriteEngine On

    # BEGIN Silverstripe
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    # END Silverstripe

    # BEGIN WordPress
    RewriteBase /blogs/aquiman/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blogs/aquiman/index.php [L]

    RewriteBase /blogs/aquipad/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blogs/aquipad/index.php [L]
    # END WordPress

</IfModule>
### SILVERSTRIPE END ###

This of course does not work. And I know it is wrong, but I don’t know enough to fix it. Please help me correct this to make it work right.

Thanks,
JH

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:39:00+00:00Added an answer on June 5, 2026 at 9:39 am

    One simple advise keep it separate i.e.

    • Keep SilverStripe related code in $DOCUMENT_ROOT/.htaccess with RewriteBase /
    • Keep WordPress related code in $DOCUMENT_ROOT/blog/.htaccess with RewriteBase /blog/

    Here is a modified Rewrite code you should use in $DOCUMENT_ROOT/.htaccess:

    # BEGIN Silverstripe
        RewriteBase /
    
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-l
        RewriteRule (?!^blog/)^.*$ sapphire/main.php?url=$1 [L,QSA,NC]
    # END Silverstripe
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net treeview control that I need to be able to set
We have a set of applications that basically display a bunch of bitmaps and
Basically I just need to be able to summon the keyboard whenever a user
basically need to change the value that - admin_url() returns any idea?
Basically I need to reset Identity Increment for all tables to its original. Here
Basically I need to setup my ASMX file so that when I pull it
So basically I need to make feature that if you select something from first
here is the code: http://jsfiddle.net/hQnXm/7/ So basically i need when hover, it should animate
I am building an iphone game. I have a set of NSStrings that I
I'm setting up a directory application for which I need to have two separate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.