Moving to a subdirectory

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Moving to a subdirectory

Postby Schop » Wed Mar 02, 2016 3:47 pm

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 I would like to move it to a subdirectory of this domain, something like

How do I do this without breaking anything? Any suggestions?
User avatar
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Moving to a subdirectory

Postby hansfn » Thu Mar 03, 2016 10:38 pm

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/
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 7 guests