Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

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
share|improve this answer
add comment

.htaccess file in /home/public_html

RewriteEngine On

RewriteCond !newversion
RewriteRule (.*) newversion/$1 [QSA]
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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