Page 1 of 1

Moving to a subdirectory

PostPosted: Wed Mar 02, 2016 3:47 pm
by Schop
Hi there,

It's been a while since I played with PivotX, so I'm a little rusty in my knowledge.

I have the following issue:

I've been running a PivotX blog _forever_ on johnschop.nl. I would like to move it to a subdirectory of this domain, something like johnschop.nl/blog

How do I do this without breaking anything? Any suggestions?

Re: Moving to a subdirectory

PostPosted: Thu Mar 03, 2016 10:38 pm
by hansfn
Assume the document root for the domain is /var/www/johnschop_nl:

Code: Select all
mv /var/www/johnschop_nl/pivotx /var/www/johnschop_nl/blog
mv /var/www/johnschop_nl/index.php /var/www/johnschop_nl/blog
mv /var/www/johnschop_nl/.htaccess /var/www/johnschop_nl/blog

Then edit .htaccess so it contains

Code: Select all
RewriteBase /blog/