Search

So I've been migrating my own blog from WordPress to Symphony-CMS (finally) I've set it up on my local and everything works fine. However I'd like to move this onto the prod server (shared host).

And to make the transition easier I thought I could put symphony into a sub-directory an redirect using some htaccess rules on the parent folder(root).

Since the domain is the primary domain I cannot choose to run it from a subdirectory so I opted for a redirect - would make it easier for myself to handle since I will not be having config files etc in the root folder as I previously had with WordPress.

The redirects seem to work - however Symphony thinks its running from a subdirectory so $root reads mysite.com/subdir/ any way I can instruct symphony to assume its being run on root (not subdir)?

I having a similar issue with Rewritebase subfolder/subfolder in .htaccess under Symphony folder.

https://github.com/symphonycms/symphony-2/issues/1296

Read last few comments: https://github.com/symphonycms/symphony-2/issues/1297

hmmm the issue is different I guess though. Everything works fine for me in the subdirectory. I just want to re-direct everything - and have all the links show as if they came from the 'root' domain.

Symphony correctly guesses its located in subdir I'd just like to know if I can make it think its not in subdir since everything is re-directed using another .htaccess at the top-most level.

Perhaps, using a global variable in XSLT (e.g. $myroot is http://domain.com in replace of $root) can be done?

yes could work - there are plenty of ways I could even change root via an extension on the XSLT side. but wondered weather there is something more suitable / configurable.

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