21309 Posts in 5738 Topics by 2603 members
| Go to End | Next > | |
| Author | Topic: | 2794 Views |
-
addon domain not accessible

4 March 2009 at 4:16pm Last edited: 4 March 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.
-
Re: addon domain not accessible

5 March 2009 at 9:19pm Last edited: 5 March 2009 9:23pm
Hi!
I have the same problem, what I have to do?
Marko!
Thanks!
-
Re: addon domain not accessible

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.
-
Re: addon domain not accessible

6 March 2009 at 12:06am Last edited: 6 March 2009 12:06am
Hi Nivanka!
thanks for the answer, but I still don't know what to change, and how.
I just design!
Marko! -
Re: addon domain not accessible

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.
-
Re: addon domain not accessible

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?
-
Re: addon domain not accessible

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]
| 2794 Views | ||
| Go to Top | Next > |




