Mobile app version of vmapp.org
Login or Join
Odierno851

: 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

@Odierno851

Posted in: #WebDevelopment

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

2 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

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.

10% popularity Vote Up Vote Down


 

@Deb1703797

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme