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.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

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

mod_rewrite : keep initial rules but add another one for a new site


Reply

3 Posts   1283 Views

Avatar
Myrdhin

22 September 2009 at 1:55am Community Member, 67 Posts

Hello,

My Silverstripe works.
It's installed in /var/www/CMS/ directory and i access to my CMS with an url like http://www.mydomain.com/ without problem.

But, i would like to redirect http://www.mydomain.com/communauty/ to /var/www/FORUM/ where i have a little php forum. I tried somes mod_rewrite rules in .htaccess file but impossible to access to the forum...

Could you help me please ? Could you show me some mod_rewrite rules which could works ?
Thanks,

Avatar
JoshuaLewis

24 September 2009 at 8:23am Community Member, 76 Posts

It would be helpful to know what rules you have already tried in your .htaccess file. Could you please post them.

Avatar
Myrdhin

29 October 2009 at 11:52pm (Last edited: 26 February 2010 11:59am), Community Member, 67 Posts

Hello,

Excuse-me : i leaved out my problem... But today, i've resolved it :).

So :

  • In my Silverstripe '.htaccess' : nothing to change
  • In my Apache Silverstripe configuration : add "Alias /communauty /var/www/FORUM"
  • In my FORUM '.htaccess' (there are mod_rexrite rules for my FORUM) : change "RewriteBase /" by "RewriteBase /communauty"

It seem to work :D