Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

addon domain not accessible


Go to End
Reply

15 Posts   3316 Views

Avatar
redcirce

4 March 2009 at 4:16pm (Last edited: 4 March 2009 4:24pm), Community Member, 22 Posts

I have an addon domain (public_html/addon_folder/) that is no longer accessible now that SilverStripe is working.

I'm getting the following error:

Not Found

The requested URL /sapphire/main.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.0.61 (Unix) mod_ssl/2.0.61 DDB DAV/2 mod_jk/1.2.25 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 mod_bwlimited/1.4 Sun-ONE-ASP/4.0.2 Server at www.mysite.com Port 80

Thanks.

Avatar
redcirce

4 March 2009 at 5:25pm Community Member, 22 Posts

Solved. Thanks anyway.

Avatar
plomar

5 March 2009 at 9:19pm (Last edited: 5 March 2009 9:23pm), 6 Posts

Hi!

I have the same problem, what I have to do?

Marko!

Thanks!

Avatar
Nivanka

5 March 2009 at 11:34pm Community Member, 395 Posts

this happens because of the .ahtaccess rules of the SilverStripe.

Just add the rules to the folders expect the relevant folder.

Avatar
plomar

6 March 2009 at 12:06am (Last edited: 6 March 2009 12:06am), 6 Posts

Hi Nivanka!

thanks for the answer, but I still don't know what to change, and how.
I just design! :(
Marko!

Avatar
Sam

6 March 2009 at 11:07am Administrator, 679 Posts

Edit the .htaccess file in the root of your site

Change this:

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

To this:

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

In other words, add the "-d" line.

Avatar
Spacemonkey

6 March 2009 at 5:22pm Community Member, 5 Posts

I don't know much about the .htaccess file

It there away to only allow certain folders to be accessed?

Avatar
plomar

6 March 2009 at 9:45pm 6 Posts

Thanks to all of you guys!

I solved the problem.
Just put a new .htaccess file in the subdomain folder.

RewriteEngine On
RewriteBase /subdomain/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subdomain/index.php(or .html) [L]

Go to Top