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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

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

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

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


Go to End


3 Posts   1681 Views

Avatar
Myrdhin

Community Member, 70 Posts

22 September 2009 at 1:55am

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

Community Member, 81 Posts

24 September 2009 at 8:23am

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

Avatar
Myrdhin

Community Member, 70 Posts

29 October 2009 at 11:52pm

Edited: 26/02/2010 11:59am

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