Search

Hey folks,

I installed Symph into a sub directory and would like to keep things that way and run the site from there.

Essentially I would like the links to still read

www.mystie.com/page vs www.mysite.com/symphony/page etc

Is it .htaccess and how would this look?

Thanks and as always, very much appreciated.

anyone? :)

How much control over the web server do you have?

The easiest way to do that is to change the DocumentRoot in your Apache config

e.g. from:

<VirtualHost *:80>
DocumentRoot /home/user/public_html/
ServerName www.example.com

to:

<VirtualHost *:80>
DocumentRoot /home/user/public_html/symphony
ServerName www.example.com

If you're using shared hosting you might have a setting in your control panel that can do this for you.

Edit: Although it is possible, I wouldn't recommend doing this using rewrite rules in your .htaccess. You will end up in a hole filled with rewrite spaghetti.

Ok, thanks I will try that!

well, the hosting company said, in essence, no. It's not my site so I can't really make it happen.

Am I better of moving it or just working with the .htacces?

You could also do it in a simple step. I've done this before on a shared host; had a website running WordPress moved into a sub-directory running Symphony.

If I'm not mistaken all I did was a single rewrite rule on the original directory; to redirect to the internal one. Later when I have access to the FTP I can check the rules exactly & post them if required.

that would be great. I know with wordpress it's really easy. Just not sure how it works with Symphony.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details