4572 Posts in 1384 Topics by 1377 members
| Go to End | Next > | |
| Author | Topic: | 4209 Views |
-
Using Wordpress on a Silverstripe Subdomain

5 February 2009 at 8:59am
Hello-
I couldn't find anything that specifically addressed this topic in the archives. I love Silverstripe, but I also love Wordpress. I want to put a Wordpress install on a subdomain but after I map the subdomain to the proper directory and upload Wordpress I get the following error:
Not Found
The requested URL /sapphire/main.php was not found on this server.
I there something in Silverstripe that doesn't let you make custom subdomains? Am I being stupid?
Thanks for the help.
-
Re: Using Wordpress on a Silverstripe Subdomain

5 February 2009 at 11:49am
You might need to edit your .htaccess file in your SilverStripe install. It has a 'RewriteBase /' or something. Try changing that path to the path of your silverstripe installation.
-
Re: Using Wordpress on a Silverstripe Subdomain

5 February 2009 at 11:59am Last edited: 5 February 2009 12:00pm
Thanks for the reply Will-
This is my .htaccess:
-------------------------------------------------------------------------------------------------------------------------------------------------------
redirect 301 /sitemap-2 http://www.domain.net/sitemap/
AddType application/x-httpd-php .htm .html
### SILVERSTRIPE START ###
RewriteEngine On
RewriteBase /# Canonicalization
RewriteCond %{HTTP_HOST} ^domain\.net
RewriteRule ^(.*)$ http://www.domain.net/$1 [R=permanent,L]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]
### SILVERSTRIPE END ###-------------------------------------------------------------------------------------------------------------------------------------------------------
All the Silverstripe files are in 1 directory (e.g. /usr/home/words/public_html/general/domain.net)
The subdomain is mapped to a file in the above directory (e.g. /usr/home/words/public_html/general/domain.net/subdomain)
I uploaded all the Wordpress files to the subdomain directory but when I visit it in a browser I see the following error:
Not Found
The requested URL /sapphire/main.php was not found on this server.
-
Re: Using Wordpress on a Silverstripe Subdomain

5 February 2009 at 12:11pm
maybe try change RewriteBase / to RewriteBase /usr/home/words/public_html/general/domain.net/ . Or remove it completely and see what happens!
-
Re: Using Wordpress on a Silverstripe Subdomain

7 May 2009 at 8:13am
I am dealing with this very same issue, blue wire. Can you tell me if you found a solution and what it is?
Sophie
-
Re: Using Wordpress on a Silverstripe Subdomain

8 May 2009 at 3:37am
easily you can solve this by making the wordpress to use a .htaccess
I think it is on the Reading section of the wordpress CMS, and there is some option, when you select it, it will make readable URLs and it will drop a new .htaccess. with this you can avoid the collisions easily, but still it is not a proper answer I guess ;)
-
Re: Using Wordpress on a Silverstripe Subdomain

14 May 2009 at 6:28am Last edited: 14 May 2009 6:29am
Has this been resolved? As I have not been able to get the blog module working, I was hoping to use a Wordpress blog in a subfolder exactly as the user above has.
I cannot get to the Wordpress CMS to create the .htaccess file since it is blocked by SilverStripe.
Thanks for any advice!
-
Re: Using Wordpress on a Silverstripe Subdomain

14 May 2009 at 6:36am
Nevermind, I got it.
The Wordpress subfolder I created was named /blog so I added the following line into my .htaccess file:
RewriteCond %{REQUEST_URI} !/blog
Everything seems to be working now!
| 4209 Views | ||
| Go to Top | Next > |





