2

Client has asked (insisted) that the site and the control panel live on different URL or subdomain. I've googled about and had a look.. I can't find much info. Before I start hacking the core.. any ideas on the best way to approach this?

So I want www.mysite.com/admin.php to redirect to a 404 or some other error page.

1 Answer 1

2

I think it's probably doable. It may be a process of elimination to work out all the kinks as you go, but no core hack should be needed.

I'd suggest you move the system directory out of the main site's document root first.

You can remove admin.php from the main site. And copy it over to the admin subdomain. And you can rename it whatever you like.

You'll need to adjust the $system_path variable in the index.php of the main site and admin.php of the admin site to match the new system folder location.

From there, you'll need to make sure the themes directory is accessible to both document roots, through a symlink.

The upload locations will need to be set with the full URL and an absolute path, so both sites can access the files.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.