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

  • Home
  • SEARCH
  • 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 8661503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:30:46+00:00 2026-06-12T16:30:46+00:00

I have a site setup and working well based in Silverstripe cms. I created

  • 0

I have a site setup and working well based in Silverstripe cms. I created a php script (not a plugin) that does some file conversion. I uploaded the script to the site root, and created an .htaccess inside it with “Allow from all”, and I give 777 to folder permission in order to allow access to this script from a browser. However, the site’s “page not found” page shows up instead.

Can someone explain what I’m missing here?
this is some conditionals in htaccess file:

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

here is the current htaccess file:

Options +FollowSymlinks 
### SILVERSTRIPE START ### 
<IfModule mod_dir.c> DirectorySlash Off </IfModule> 
RewriteEngine On RewriteBase / RewriteRule ^index.html$ http://www.domain.com/ [R=301,L] RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ 
RewriteCond %{REQUEST_URI} ^(.*)$ 
RewriteCond %{REQUEST_URI} !^/csv_compare 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] 
### SILVERSTRIPE END ###
  • 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-12T16:30:48+00:00Added an answer on June 12, 2026 at 4:30 pm

    I’m not familiar with Silverstripe, but it sounds like the root htaccess might be redirecting. However, the safety of allow from all/777 is a little risky!

    Edit: Looking at the htaccess at https://github.com/silverstripe/silverstripe-installer/blob/master/.htaccess:

    RewriteCond %{REQUEST_FILENAME} !-f
    

    That is telling the system to redirect to the framework if the request is not for a valid file. If you are requested a directory, that might be the problem. You could add the following before the line above:

    RewriteCond %{REQUEST_FILENAME} !-d
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a site setup that is working fine in ie8 and firefox but
I have a login setup on a site that stores login information in PHP's
Here's the setup. I have web site which is essentially a simple CMS. Here
I am working on PHP & mySQL based website. I am trying to setup
I have an test server setup that is running a version of the site
I have a Drupal 6 site where I've created a view that shows a
I have Coldfusion, the CF administrator and my test site all setup and working
I'm working on a multi-site CMS that has a notion of cross-publication among sites.
I have a load balanced dev site that I'm working out bugs for SSL
I have this membership site setup on my local machine using the ASP.NET membership

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.