caffe663 Posted May 6, 2022 Share Posted May 6, 2022 Hello everyone. So i have this one website name "abc.com" and now i want another website with the name "ny.abc.com" with the same content I use a host on the "abc.com" domain. Now i hire a server and i want to use it on "ny.abc.com" and i copy the file and upload it to the new server and change things in the database. And i point the "ny" to the "abc.com" according to the supporter on the server told me. But it does not work, whenever i write ny.abc.com it goes to abc.com. What should i do. thank you very much Link to comment Share on other sites More sharing options...
ComGrafPL Posted May 6, 2022 Share Posted May 6, 2022 Create new DB on ny. Export table from abc.com and use the import on ny.abc.com. Then change the details on parameters.php Link to comment Share on other sites More sharing options...
caffe663 Posted May 6, 2022 Author Share Posted May 6, 2022 9 minutes ago, ComGrafPL said: Create new DB on ny. Export table from abc.com and use the import on ny.abc.com. Then change the details on parameters.php I did all of that. But it did not work. So i asked the supporter on my server.He told me to point the domain to the ip vps. something like ny A myip. I did that also.But then when i type ny.abc.com it keeps going to abc.com while i want it to be ny.abc.com. I asked the supporter again he told me i have to adjust the domain name in the source code which i have no idea where it is or how should i change it Link to comment Share on other sites More sharing options...
ComGrafPL Posted May 6, 2022 Share Posted May 6, 2022 15 minutes ago, caffe663 said: I did all of that. But it did not work. So i asked the supporter on my server.He told me to point the domain to the ip vps. something like ny A myip. I did that also.But then when i type ny.abc.com it keeps going to abc.com while i want it to be ny.abc.com. I asked the supporter again he told me i have to adjust the domain name in the source code which i have no idea where it is or how should i change it Did you change setting in file parameters.php on ny.abc.com? Link to comment Share on other sites More sharing options...
caffe663 Posted May 6, 2022 Author Share Posted May 6, 2022 2 minutes ago, ComGrafPL said: Did you change setting in file parameters.php on ny.abc.com? Yes i did. the database name user password. I did it right. I just dont know why it does not work. Maybe because i did not own the domain ny.abc.com. But the supporter told me i need to change the domain in the source code. Link to comment Share on other sites More sharing options...
ComGrafPL Posted May 6, 2022 Share Posted May 6, 2022 Should be on db table either parameters. Did you check on db tables all the urls? Link to comment Share on other sites More sharing options...
caffe663 Posted May 7, 2022 Author Share Posted May 7, 2022 On 5/6/2022 at 6:04 PM, ComGrafPL said: Should be on db table either parameters. Did you check on db tables all the urls? yes i did. Everything is correct but it keep pointing to the abc.com Link to comment Share on other sites More sharing options...
Nickz Posted May 7, 2022 Share Posted May 7, 2022 4 hours ago, caffe663 said: yes i did. Everything is correct but it keep pointing to the abc.com Your database has your old shop url just as the webgency told yer. Link to comment Share on other sites More sharing options...
caffe663 Posted May 9, 2022 Author Share Posted May 9, 2022 On 5/7/2022 at 9:26 PM, ndiaga said: It is because you have a table called ps_shop_url and it can contain only one entry : abc.com You need advanced code adaptation in ny.abc.com to avoid the redirection to abc.com . It is not that simple. Thank you for replying but when i do that it also did not work Link to comment Share on other sites More sharing options...
caffe663 Posted May 9, 2022 Author Share Posted May 9, 2022 On 5/8/2022 at 12:44 AM, Nickz said: Your database has your old shop url just as the webgency told yer. I changed the ps url in the database to ny.abc.com too but it did not work as well. Maybe i should change something in the ht.access but i dont know what should i change Link to comment Share on other sites More sharing options...
caffe663 Posted May 9, 2022 Author Share Posted May 9, 2022 When i change the url in the direct admin into ny.abc.com. The website wont load and it keeps saying redirected too many times. Where did i do wrong. Please help me, thank you very much. Link to comment Share on other sites More sharing options...
El Patron Posted May 9, 2022 Share Posted May 9, 2022 25 minutes ago, caffe663 said: When i change the url in the direct admin into ny.abc.com. The website wont load and it keeps saying redirected too many times. Where did i do wrong. Please help me, thank you very much. Do no include https prefix, that is normal cause of to many redirects. Screen shots are helpful Link to comment Share on other sites More sharing options...
Nickz Posted May 9, 2022 Share Posted May 9, 2022 (edited) 3 hours ago, caffe663 said: Maybe i should change something in the ht.access in .htaccess you need to set the domainname and shop folder. Compare and make a back up before changing anythimg Edited May 9, 2022 by Nickz (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now