2

When you create an account in cpanel you can use a URL to access it like http://ip/%7Eusername/, which is basically http://ip/~username/. Since the client is not ready to take down their old site and we are moving hosts, can Craft run on a URL with the ~username or %7E in the URL? They do not have a dedicated IP unfortunately. Thanks in advance.

I know the license will be needed, but can we change the URL to the real one when ready to go LIVE?

14
  • Assuming you have auth over the DNS, why not just create an A record for dev.example.com pointing to new IP? – Steve Adams Nov 15 '15 at 12:16
  • I do not have DNS access yet. They are working on that. – Bryan Garrant Nov 15 '15 at 12:27
  • I keep a prototype domain just for this purpose. There is no reason not to use dev.whatever.com when you control whatever.com – Steve Adams Nov 15 '15 at 12:30
  • How do I update the license to the new URL when site is ready? – Bryan Garrant Nov 15 '15 at 12:31
  • I have a few dedicated IPs I can also use on my server if needed. Just wondering how to update the license domain when ready to change – Bryan Garrant Nov 15 '15 at 12:32
2

http://buildwithcraft.com/docs/multi-environment-configs

'example.com' => array(...

'should' work with an address like:

'123.45.67.89/%7eusername' => array(...

You might also try:

'123.45.67.89/~username' => array(...

Although using a proper domain name as in my comment above would be better.

Good luck. :)

2
  • Thx. I will try it. Was not sure if the ~ would cause any issues – Bryan Garrant Nov 15 '15 at 12:28
  • I was just wondering if anyone tried it this way yet – Bryan Garrant Nov 15 '15 at 12:29

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.