Move Concrete5 login from one url to another on the same server [SOLVED]

Permalink
Huhu,

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!

Fussel

Fussel
View Replies:
johnpaulb replied on at Permalink Reply
johnpaulb
Hello Fussel,

First, move the site to the new location(website2.com). Here is a link to Concrete5's official guide:
http://www.concrete5.org/documentation/installation/moving_a_site/...

If their host has a cPanel, this walk-through guide I did may help:
http://www.webhostinghub.com/support/edu/concrete5/get-started/move...

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,
-Joohn-Paul
Fussel replied on at Permalink Reply
Fussel
Hey,
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!
Fussel
Fussel replied on at Permalink Reply
Fussel
Ah, and both urls did link to the same folder (root)!
So I didnt have to move anything, because its already there :)
Fussel replied on at Permalink Reply
Fussel
yeah!
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

This worked!
:-D
johnpaulb replied on at Permalink Reply
johnpaulb
Awesome Fussel! I'm glad you got it working.
-John-Paul