Move Concrete5 login from one url to another on the same server [SOLVED]
I made a website for a friend, she has two URLs linking to the same site, on one server.
I installed concrete5 to website1.com - website2.com links also to this site.
Now she decided that its better for her if website2.com would be the mainsite and website1.com links to a subpage of website1.com
Thanks in advantage for your help!
First, move the site to the new location(website2.com). Here is a link to Concrete5's official guide:
If their host has a cPanel, this walk-through guide I did may help:
Then reverse the redirect from: website2.com -> website1.com
To: website1.com ->website2.com
Most likely this was setup as an .htaccess redirect, or done in the cPanel (which just adds the .htaccess rule).
I hope this helps,
thanks for your answer!
I already began sorting it out :)
I added define('BASE_URL', 'http://www.website2.com'); to site.php
That worked - website2 is now the main one and I can log in over that site.
But now I want the redirect - website1.com should redirect to website2.com/something
That url is working if I try to reach it manually. The redirect (via the server(strato)) doesnt work, I get an Internal Server Error!
Do you have an idea why?
Thanks for your help!
So I didnt have to move anything, because its already there :)
I made it ;)
I made a new folder /website1, copied the .htaccess in this folder and added a line Redirect / website2.com/something
Than I made a internal redirect on the strato-page, which redirects website1.com to /website1