: How to add one website to another website? everyone. I am working on a website based on Yii2 through localhost. I want to add changes i made to the actual server. But i want to keep the
everyone.
I am working on a website based on Yii2 through localhost.
I want to add changes i made to the actual server. But i want to keep the old version and new version of the website working together.
What i mean: if i type
url.com
i access the old version and when i type
url.com/something
i access the new version.
How can i accomplish this?
Thanks in advance.
More posts by @Odierno851
2 Comments
Sorted by latest first Latest Oldest Best
Go to your web dir and copy entire page.
Make a new folder and name it something
Paste the entire web in that folder.
When you go on example.com you'll have one page, when you go on example.com/something, you'll go on this bacukped or newly created page.
BUT
when doing that and before doing any actual changes, backup your database also.
hope that helps.
Simple, make a subdomain: www.url.com and old.url.com.
This way
Your document_root variables will stay intact
You don't need to prefix '/something/' to all your resources www.url.com/something remains accessable in case you (unforseenly) need it
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.