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   3393 Views

Avatar
redcirce

Community Member, 22 Posts

4 March 2009 at 4:16pm

Edited: 04/03/2009 4:24pm

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

Community Member, 22 Posts

4 March 2009 at 5:25pm

Solved. Thanks anyway.

Avatar
plomar

6 Posts

5 March 2009 at 9:19pm

Edited: 05/03/2009 9:23pm

Hi!

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

Marko!

Thanks!

Avatar
Nivanka

Community Member, 398 Posts

5 March 2009 at 11:34pm

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

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

Avatar
plomar

6 Posts

6 March 2009 at 12:06am

Edited: 06/03/2009 12:06am

Hi Nivanka!

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

Avatar
Sam

Administrator, 685 Posts

6 March 2009 at 11:07am

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

Community Member, 5 Posts

6 March 2009 at 5:22pm

I don't know much about the .htaccess file

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

Avatar
plomar

6 Posts

6 March 2009 at 9:45pm

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