Jump to content

Recommended Posts

Posted

I want to add domain (free one like .tk) that will point out to one of my domain.

for example. I register example.tk and would like it to point out to patents.heliohost.org/example/ but do not update the visitor's url.

 

This way the entire relatie urls also points to exmaple.com directly.

 

for eg.

 

If I point example.tk/practical it should point to patents.heliohost.org/example/practical.

 

I tried url redirect but it takes me to example.tk/example/practical.

 

I don't want to play with all the things in cpannel that I don't understand which can break the site.

 

Someone please point out the right way.

 

 

Posted (edited)

I have django app folder at: public_html/example

 

I have used addon domain using this configuration:

 

New Domain Name

 

example.tk

 

Subdomain

example

 

No ftp ticked.

 

I got success.

 

it looks like this now:

 

Modify Addon Domain

Addon Domains

 

Document Root Subdomain Redirects to Action

home/public_html/example example not redirected Remove

 

 

Now visiting example.tk gives me 500: internal server Error.

 

visiting: http://example.patents.heliohost.org/ is also giving same error.

 

Please note example is just an example.

 

I am hosting django app which works well.

 

Edited by patents
Posted

You'll need to pick one domain or the other for django to work. The way the .htaccess needs to be written won't work for both at the same time.

Posted (edited)

So, I can't have multiple django apps and multiple domains pointing to that apps.

Edited by patents
Posted

You can have as many django apps as you want. You can have as many domains as you want. You can even have as many domains as you want pointing at the same django app. The paths just have to be the same.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...