up vote 0 down vote favorite
share [g+] share [fb]

My client gave me limited access to his webserver. At the moment, I have 2 versions of the same website and they are

/home/public_html/

and

/home/public_html/newversion/

I want to point mydomain.com from /home/public_html/ to /home/public_html/newversion/

I have acces to the PLESK control panel. I have ssh access, but it's a non-root account, and i don't think i'm able to access any Apache config files. I do have the option of using .htaccess files

What should I do?

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

Given lots of assumptions about your configuration, the best bet is probably:

  • move everything in /home/public_html to /home/public_html/oldversion
  • then move everything from /home/public_html/newversion to /home/public_html
link|improve this answer
feedback

.htaccess file in /home/public_html

RewriteEngine On

RewriteCond !newversion
RewriteRule (.*) newversion/$1 [QSA]
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.